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 37d0e19 + 926208f commit e37b279Copy full SHA for e37b279
pre_commit_hooks/removed.py
@@ -5,7 +5,7 @@
5
6
def main(argv: Optional[Sequence[str]] = None) -> int:
7
argv = argv if argv is not None else sys.argv[1:]
8
- hookid, new_hookid, url = argv
+ hookid, new_hookid, url = argv[:3]
9
raise SystemExit(
10
f'`{hookid}` has been removed -- use `{new_hookid}` from {url}',
11
)
tests/removed_test.py
@@ -8,6 +8,7 @@ def test_always_fails():
main((
'autopep8-wrapper', 'autopep8',
'https://github.com/pre-commit/mirrors-autopep8',
+ '--foo', 'bar',
12
))
13
msg, = excinfo.value.args
14
assert msg == (
0 commit comments