Pycodestyle 2.11.1 breaks flake8 5.0.4 in noble
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pycodestyle (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The update of pycodestyle to version 2.11.1 seems to break the current flake8 at version 5.0.4 at noble.
What happens:
Flake8 5.0.4 tries to import missing_
The latest pycodestyle that seems to have missing_
Possible fix: Either downgrade pycodestyle to 2.10.0 or upgrade flake8 to 6.0.1, looking at version numbers the former might bring less breaking changes in but I'm not sure how this plays out with the plans to bring python3.12 into noble.
Steps to Reproduce:
OS:
Description: Ubuntu Noble Numbat (development branch)
Release: 24.04
Packages:
flake8:
Installed: (none)
Candidate: 5.0.4-4
Version table:
5.0.4-4 500
500 http://
pycodestyle:
Installed: 2.11.1-1
Candidate: 2.11.1-1
Version table:
*** 2.11.1-1 500
500 http://
100 /var/lib/
Commands:
$python3
>>> from flake8.api.legacy import get_style_guide
>>> get_style_guide()
Traceback (most recent call last):
File "/usr/lib/
obj = plugin.
File "/usr/lib/
module = import_
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
from pycodestyle import missing_
^^^
ImportError: cannot import name 'missing_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
application
File "/usr/lib/
self.plugins = finder.
File "/usr/lib/
return _classify_
File "/usr/lib/
return [_load_plugin(p) for p in plugins]
File "/usr/lib/
return [_load_plugin(p) for p in plugins]
File "/usr/lib/
raise FailedToLoadPlu
flake8.
Update:
It seems that python_ 3000_async_ await_keywords needed here by flake8 5.0.4:
https:/ /github. com/PyCQA/ flake8/ blob/5. 0.4/src/ flake8/ plugins/ pycodestyle. py#L27
is also gone in pycodestyle 2.11.0:
https:/ /github. com/PyCQA/ pycodestyle/ blob/2. 11.0/pycodestyl e.py