From 204d8cc7eb48c56b2c778ec6a678182e6931974a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 2 May 2018 10:34:50 +0200 Subject: [PATCH] Fix git hook --- doc/development/setup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/development/setup.rst b/doc/development/setup.rst index b262319be8..20ae7ce8f5 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -125,7 +125,7 @@ for example, to check for any errors in any staged files when committing:: for file in $(git diff --cached --name-only | grep -E '\.py$') do git show ":$file" | flake8 - --stdin-display-name="$file" || exit 1 # we only want to lint the staged changes, not any un-staged changes - git show ":$file" | isort -df --check-only - | grep ERROR && exit 1 + git show ":$file" | isort -df --check-only - | grep ERROR && exit 1 || true done