From d707a1d66895b6b4d6998064afbf242e74a80055 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Feb 2024 14:36:45 +0100 Subject: [PATCH] Fix errors --- dev/setup/git/hooks/pre-commit | 3 ++- dev/setup/pre-commit/README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 dev/setup/git/hooks/pre-commit diff --git a/dev/setup/git/hooks/pre-commit b/dev/setup/git/hooks/pre-commit old mode 100644 new mode 100755 index ea08cd1fc92..c04e5a39609 --- a/dev/setup/git/hooks/pre-commit +++ b/dev/setup/git/hooks/pre-commit @@ -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 diff --git a/dev/setup/pre-commit/README.md b/dev/setup/pre-commit/README.md index f24a1fc56b4..9db2d529b8e 100644 --- a/dev/setup/pre-commit/README.md +++ b/dev/setup/pre-commit/README.md @@ -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.