mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
remove flake8 and suggest pycqa/flake8
This commit is contained in:
parent
acd6b162ce
commit
b9cc9d7761
6 changed files with 41 additions and 28 deletions
|
|
@ -1,9 +0,0 @@
|
|||
def main() -> int:
|
||||
raise SystemExit(
|
||||
'autopep8-wrapper is deprecated. Instead use autopep8 directly via '
|
||||
'https://github.com/pre-commit/mirrors-autopep8',
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
15
pre_commit_hooks/removed.py
Normal file
15
pre_commit_hooks/removed.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import sys
|
||||
from typing import Optional
|
||||
from typing import Sequence
|
||||
|
||||
|
||||
def main(argv: Optional[Sequence[str]] = None) -> int:
|
||||
argv = argv if argv is not None else sys.argv[1:]
|
||||
hookid, new_hookid, url = argv
|
||||
raise SystemExit(
|
||||
f'`{hookid}` has been removed -- use `{new_hookid}` from {url}',
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue