From 7dcad7e5c741a09addcd3ce4afcf4a778b795b64 Mon Sep 17 00:00:00 2001 From: Alan <3899850+alanwilter@users.noreply.github.com> Date: Wed, 22 Dec 2021 22:55:47 +0000 Subject: [PATCH] To comply with shellcheck --- pre_commit/resources/hook-tmpl | 2 +- tests/commands/install_uninstall_test.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl index 53d29f95..2b44a1f6 100755 --- a/pre_commit/resources/hook-tmpl +++ b/pre_commit/resources/hook-tmpl @@ -15,6 +15,6 @@ if [ -x "$INSTALL_PYTHON" ]; then elif command -v pre-commit > /dev/null; then exec pre-commit "${ARGS[@]}" 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/tests/commands/install_uninstall_test.py b/tests/commands/install_uninstall_test.py index 0b2e248b..cf0f37d2 100644 --- a/tests/commands/install_uninstall_test.py +++ b/tests/commands/install_uninstall_test.py @@ -257,8 +257,8 @@ def test_environment_not_sourced(tempdir_factory, store): ) assert ret == 1 assert out == ( - '`pre-commit` not found. ' - 'Did you forget to activate your virtualenv?\n' + "'pre-commit' not found. " + "Did you forget to activate your virtualenv?\n" )