FS#58210 - [flake8][python-pycodestyle] Flake8 does not support pycodestyle>=2.4.0
Attached to Project:
Community Packages
Opened by Rupus Reinefjord (nameequalsmain) - Thursday, 12 April 2018, 11:49 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 20 April 2018, 14:38 GMT
Opened by Rupus Reinefjord (nameequalsmain) - Thursday, 12 April 2018, 11:49 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 20 April 2018, 14:38 GMT
|
Details
Description:
Flake8 does not support pycodestyle>=2.4.0, dependency is "pycodestyle >= 2.3.0, < 2.4.0". Flake8 cannot run at all with pycodestyle 2.4.0 and errors out with the following exception: ``` flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "pycodestyle.break_around_binary_operator" due to module 'pycodestyle' has no attribute 'break_around_binary_operator'. ``` Upstream issues: flake8: https://gitlab.com/pycqa/flake8/issues/406 pycodestyle: https://github.com/PyCQA/pycodestyle/issues/741 Additional info: flake8 1:3.5.0-1 python-pycodestyle 2.4.0-1 Steps to reproduce: Run flake8 3.5.0 with pycodestyle 2.4.0. |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Friday, 20 April 2018, 14:38 GMT
Reason for closing: Fixed
Additional comments about closing: flake8 1:3.5.0-2
Friday, 20 April 2018, 14:38 GMT
Reason for closing: Fixed
Additional comments about closing: flake8 1:3.5.0-2
python -m flake8 to reproduce bug
I think this could be made of use in some way to check if Arch's Python package deps are OK in this regard.
However I could not get the warning using the system's pip (https://github.com/PyCQA/pycodestyle/issues/741#issuecomment-381354443).
https://gitlab.com/pycqa/flake8/merge_requests/230 (marked as "do-not-merge", though)
https://gitlab.com/pycqa/flake8/merge_requests/231
UPDATE: both merge requested are merged
sudo pacman -U /var/cache/pacman/pkg/python-pycodestyle-2.3.1-1-any.pkg.tar.xz