I just discovered Ruff (https://beta.ruff.rs/), a Python linter that can replace flake8, a ton of flake8 plugins, isort, bandit, pydocstyle, etc.
It's insanely fast but above all very simple to configure. I think I'll adopt it wherever possible, and couple it with pre-commit for great success.
Thanks to all the contributors!
#Fedora #Python
Ruff

@abompard Same here about six weeks ago... it's great!
@kevin @abompard Also has a great #VSCode extension! We're actually decoupling more and more stuff from the Python extension for VS Code to make sure Ruff (and other extensions) are put on equal footing and stuff like isort aren't given preferential treatment
@abompard Do you know if the PEP8-related warnings/errors from flake8 work (e.g. E203 whitespace before comma, E251 unexpected spaces around equals, ...)? I couldn't figure out if this is supported and how to enable it.
@cbrnr I think Ruff is designed to be run alongside Black, so it does not do much about formatting itself.

@cbrnr @abompard I was also wondering this, so I tried it today and style errors like E203 are not detected (on purpose) unfortunately.

But they weren't lying on the speed part, phew! 🚀

@cbrnr @abompard Though looking at some recent PRs, it might be a matter of time before those pycodestyle errors can be toggled on https://github.com/charliermarsh/ruff/issues/2402 ?

EDIT: looks like it might be happening very soon actually https://github.com/charliermarsh/ruff/issues/3361#issuecomment-1456451532

Implement remaining `pycodestyle` rules · Issue #2402 · charliermarsh/ruff

Note: some of the checked-off rules are still gated behind the logical_lines feature flag. To see the list of rules enabled in the current release, refer to the docs. E1 Indentation E101 ("ind...

GitHub