Lint is broken in CI
See https://gitlab.com/teklia/workers/tesseract/-/jobs/3129510497 for an example. This seems to be due to a breaking change in the most recent importlib-metadata (per https://stackoverflow.com/a/73932581)
Full log is below.
Traceback (most recent call last):
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/bin/flake8", line 8, in <module>
sys.exit(main())
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 363, in run
self._run(argv)
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 350, in _run
self.initialize(argv)
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 330, in initialize
self.find_plugins(config_finder)
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/main/application.py", line 153, in find_plugins
self.check_plugins = plugin_manager.Checkers(local_plugins.extension)
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 357, in __init__
self.namespace, local_plugins=local_plugins
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 238, in __init__
self._load_entrypoint_plugins()
File "/builds/teklia/workers/tesseract/.cache/pre-commit/repoqh7bn00_/py_env-python3/lib/python3.7/site-packages/flake8/plugins/manager.py", line 254, in _load_entrypoint_plugins
eps = importlib_metadata.entry_points().get(self.namespace, ())
AttributeError: 'EntryPoints' object has no attribute 'get'