summaryrefslogtreecommitdiffstats
path: root/pre_commit/commands/run.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-04 03:57:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-04 03:57:54 +0000
commitfc1651ef0b7ccedc604b28d5893f5cd486cd4091 (patch)
tree3ea033abb546734a46b2e947756e0d9f792b0e80 /pre_commit/commands/run.py
parentReleasing debian version 2.15.0-1. (diff)
downloadpre-commit-fc1651ef0b7ccedc604b28d5893f5cd486cd4091.tar.xz
pre-commit-fc1651ef0b7ccedc604b28d5893f5cd486cd4091.zip
Merging upstream version 2.16.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/commands/run.py')
-rw-r--r--pre_commit/commands/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py
index 95ad5e9..2714faf 100644
--- a/pre_commit/commands/run.py
+++ b/pre_commit/commands/run.py
@@ -290,7 +290,7 @@ def _run_hooks(
verbose=args.verbose, use_color=args.color,
)
retval |= current_retval
- if retval and config['fail_fast']:
+ if retval and (config['fail_fast'] or hook.fail_fast):
break
if retval and args.show_diff_on_failure and prior_diff:
if args.all_files: