Closed ThibFrgsGmz closed 1 year ago
I'll have to take some time to sit down and look at all this, but this looks really promising. Thank you @ThibFrgsGmz ! I'll get to this as soon as I can.
For the time being, it's best to wait for the SARIF output format to be supported. That's for the best, as other rules will be added in the meantime.
Closing.
Change Description
Ruff, by Astral is a very fast linter implemented in Rust that can replace
pylama
,flake8
, ....Ruff
also implements the rules of other popular Python linters such aspylint
,isort
andpyupgrade
. There are even plans to implement feature parity withblack
in the future. Ultimately, it can become our one-stop shop for all things Python linting and formatting.pylama
/flake8
/... configuration filesRationale
This stack should replace all our Python lint tools with ruff, except for:
It provides:
Testing/Review Recommendations
To avoid noise in others' patches, violated rules are currently all ignored.
Configuration
Ruff is configured in the root file
pyproject.toml
. In addition, ruff retrieves anypyproject.toml
file. In addition, ruff retrieves anypyproject.toml
orruff.toml
files in the subdirectories. The settings in these files will only apply to the whole system. The settings in these files will only apply to the files contained in these subdirectories.Additional information
Future Work