add shfmt

This commit is contained in:
Aminda Suomalainen 2023-05-18 11:58:51 +03:00
parent 687a6433bb
commit 8fb52ec8f2
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 42 additions and 37 deletions

View File

@ -80,6 +80,13 @@ repos:
# - id: black # - id: black
#- id: black-jupyter #- id: black-jupyter
# Shell code formatter, requires Go
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-2
hooks:
- id: shfmt
#- id: shfmt-docker
# .editorconfig validity checking # .editorconfig validity checking
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1" rev: "2.7.1"

View File

@ -41,13 +41,11 @@ if hash pre-commit 2>/dev/null; then
pre-commit gc pre-commit gc
fi fi
if [ -f $HOME/.MIKAELAGREP ] if [ -f $HOME/.MIKAELAGREP ]; then
then
mv $HOME/.MIKAELAGREP $MIKAELA_GREP mv $HOME/.MIKAELAGREP $MIKAELA_GREP
fi fi
if [ -f "$MIKAELA_GREP" ] if [ -f "$MIKAELA_GREP" ]; then
then
bash -x .mikaela_install bash -x .mikaela_install
fi fi