mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix errors
This commit is contained in:
parent
42243d141a
commit
d707a1d668
3
dev/setup/git/hooks/pre-commit
Normal file → Executable file
3
dev/setup/git/hooks/pre-commit
Normal file → Executable 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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user