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
After #234, all Flake8 codes starting with "F" are reported with error severity. This is overly high: the only codes that really errors are F821, F823, F831, and maybe F405 and F822.
Can we add explicit checks for error codes to classify them as errors vs. warnings?
Hey @nexplor, thanks for reporting. I have no problem with that, so please submit a pull request to provide more fine-grained error reports from Flake8.
I feel troubled by this: Flake8 is really not designed to fine-grain all errors. Similar to the above, e.g. F501, F521 and F721 would need to be declared as errors. So either we carefully design the severeness of all error codes or we convince the flake8 maintainers to make the error codes more meaningful. You might consider using pycodestyle, mccabe and pyflakes separately as they support better fine-graining.
Activity
ccordoba12 commentedon Aug 27, 2022
Hey @nexplor, thanks for reporting. I have no problem with that, so please submit a pull request to provide more fine-grained error reports from Flake8.
jhossbach commentedon Oct 19, 2022
I feel troubled by this: Flake8 is really not designed to fine-grain all errors. Similar to the above, e.g. F501, F521 and F721 would need to be declared as errors. So either we carefully design the severeness of all error codes or we convince the flake8 maintainers to make the error codes more meaningful. You might consider using pycodestyle, mccabe and pyflakes separately as they support better fine-graining.
jhossbach commentedon May 31, 2023
FYI
python-lsp-ruffallows customizing of severities as ofv1.5.0(although only on a per-code level, and it does not accept regex patterns)ccordoba12 commentedon May 31, 2023
That would be a good enough solution here too. But I guess you're interested in giving us a hand with it for Flake8, right?