ruffļ
Ruff is an extremely fast Python linter and code formatter, written in Rust. Ruff is a drop-in parity with Flake8, isort, and Black. Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface. Ruff documentation can be found here.
ruff
can be used as a linter like this:
ruff check .
It can also fix automatically some of the errors, like this:
ruff check . --fix
In order to use ruff
as a formatter one should run the following command:
ruff format .
All-ānā-all ruff
is super easy to use!
Note
ruff
is now used and invoked automatically by tox
.
If you want to use ruff
from tox
then please use the following command:
tox -e ruff