ci: switch flake8 by ruff
Ruff is quite a new linter with impresive speed and offers to add multiple checks...
Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface. Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing tens or hundreds of times faster than any individual tool.
Also, I would suggest installing pre-commit bot, which helps to fix code within each PR so, lowering developer overhead... see: https://pre-commit.ci/
:x: pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md
:x: pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md
Will the config you've set it up with cause it to lint with the exact same rules as flake8 had?
Will the config you've set it up with cause it to lint with the exact same rules as
flake8had?
With my best knowledge, yes (I have converted a few my personal projects and haven't seen any downside)
Will the config you've set it up with cause it to lint with the exact same rules as
flake8had?With my best knowledge, yes (I have converted a few my personal projects and haven't seen any downside)
Ok, in that case I am fine with this change but will wait for others to respond
mind have a look @yk @andreaskoepf pls :rabbit:
UPDATE, with https://pre-commit.ci/#configuration-skip we can use autofix via the bot for all hooks except locals :chipmunk:
:x: pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md
mind have a look @yk @andreaskoepf pls :chipmunk:
friendly ping @yk @andreaskoepf :otter:
Gentle ping @yk @andreaskoepf :chipmunk: also fine to close it :cowboy_hat_face:
ruff seems to be interesting, before merge someone needs to verify that it is working seamlessly as a flake8 replacement for the OA project.
verify that it is working seamlessly
what do you mean? :chipmunk:
closed in favor of #3323 (which includes these changes, could not push merge to original repo since it was archived)
could not push merge to original repo since it was archived)
you see me responding promptly, so you could just remind me to unarchive it :D and wai a few hours while I was waiting for several months :flamingo: