Fix errors

This commit is contained in:
Laurent Destailleur 2024-02-18 14:36:45 +01:00
parent 42243d141a
commit d707a1d668
2 changed files with 3 additions and 2 deletions

3
dev/setup/git/hooks/pre-commit Normal file → Executable file
View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# File generated by pre-commit: https://pre-commit.com
# Modified by adding 1>&2 to have output return to the IDE.
# ID: 138fd403232d2ddd5efb44317e38bf03
# start templated
@ -15,6 +16,6 @@ if [ -x "$INSTALL_PYTHON" ]; then
elif command -v pre-commit > /dev/null; then
exec pre-commit "${ARGS[@]}" 1>&2
else
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
echo 'pre-commit not found. Did you forget to activate your virtualenv?' 1>&2
exit 1
fi

View File

@ -30,7 +30,7 @@ the project: `pre-commit-config.yaml`.
Then you can install pre-commit tool: `python -m pip install pre-commit`.
2. In your local git clone of the project, run `pre-commit install` to add the hooks.\
or copy the file git/hooks/pre-commit manually. (recommanded because this file differs
or copy the file git/hooks/pre-commit manually. (recommended because this file differs
from the file installed with pre-commit install as it redirects output to the error
channel so your IDE will be able to catch the error.