PyCQA / pycodestyle

Simple Python style checker in one Python file

Home Page:https://pycodestyle.pycqa.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undocumented breaking change affecting autopep8

paugier opened this issue · comments

I guess pycodestyle.missing_whitespace_around_operator was removed in pycodestyle 2.11.0 (2023-07-29).

It breaks autopep8 (hhatto/autopep8#689). Currently, the most recent versions of pycodestyle and autopep8 are incompatible.

How this should be fixed? Which project (pycodestyle or autopep8) has to be adapted and how?

The commit which suppressed missing_whitespace_around_operator: f04e2a1

Autopep8 needs to adjust

Should it be enough to just call missing_whitespace instead of missing_whitespace_around_operator in autopep8?

Shouldn't such breaking change be mentioned in https://pycodestyle.pycqa.org/en/latest/developer.html#changes?

there is no public API of pycodestyle beyond the StyleGuide. calling the internal functions is at your own risk