remove flake8 and suggest pycqa/flake8

This commit is contained in:
Anthony Sottile 2020-05-14 16:00:29 -07:00
parent acd6b162ce
commit b9cc9d7761
6 changed files with 41 additions and 28 deletions

View file

@ -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())

View 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())