remove flake8 and suggest pycqa/flake8
diff --git a/pre_commit_hooks/autopep8_wrapper.py b/pre_commit_hooks/autopep8_wrapper.py
deleted file mode 100644
index 78a1cce..0000000
--- a/pre_commit_hooks/autopep8_wrapper.py
+++ /dev/null
@@ -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())
diff --git a/pre_commit_hooks/removed.py b/pre_commit_hooks/removed.py
new file mode 100644
index 0000000..9710b2d
--- /dev/null
+++ b/pre_commit_hooks/removed.py
@@ -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())