Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fbe359 + bbc3130 commit 03ac3b0Copy full SHA for 03ac3b0
1 file changed
pre_commit/resources/hook-tmpl
@@ -49,6 +49,16 @@ def _norm_exe(exe):
49
50
51
def _run_legacy():
52
+ if __file__.endswith('.legacy'):
53
+ raise SystemExit(
54
+ "bug: pre-commit's script is installed in migration mode\n"
55
+ 'run `pre-commit install -f --hook-type {}` to fix this\n\n'
56
+ 'Please report this bug at '
57
+ 'https://github.com/pre-commit/pre-commit/issues'.format(
58
+ HOOK_TYPE,
59
+ ),
60
+ )
61
+
62
if HOOK_TYPE == 'pre-push':
63
stdin = getattr(sys.stdin, 'buffer', sys.stdin).read()
64
else:
0 commit comments