You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running the pre-commit hook of flake8, the following error occurs if Python version is 3.12.
flake8...................................................................Failed
- hook id: flake8
- exit code: 1
Traceback (most recent call last):
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/bin/flake8", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 363, in run
self._run(argv)
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 350, in _run
self.initialize(argv)
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 330, in initialize
self.find_plugins(config_finder)
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/main/application.py", line 153, in find_plugins
self.check_plugins = plugin_manager.Checkers(local_plugins.extension)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 356, in __init__
self.manager = PluginManager(
^^^^^^^^^^^^^^
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/site-packages/flake8/plugins/manager.py", line 238, in __init__
self._load_entrypoint_plugins()
File "/home/mortalhappiness/.cache/pre-commit/repo785be_6i/py_env-python3.12/lib/python3.12/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'
Versions / Dependencies
Python 3.12
Reproduction script
If python version is 3.9 -> no error
If python version is 3.12 -> has error
Upgrade the following packages to the newest version solves this issue:
flake8
flake8-comprehensions
flake8-quotes
flake8-bugbear
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered:
What happened + What you expected to happen
While running the pre-commit hook of flake8, the following error occurs if Python version is 3.12.
Versions / Dependencies
Python 3.12
Reproduction script
If python version is 3.9 -> no error
If python version is 3.12 -> has error
Upgrade the following packages to the newest version solves this issue:
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered: