-
-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt ruff for linting #2090
Comments
I tried it just now and got some interesting results. I dropped in a line-length = 160 Because the default line length limit of 88 was causing a lot of noisy errors. Then run: pip install ruff
ruff check . Plenty of warnings about unused imports - running Some lines in tests are longer than even 160 chars, e.g.: Lines 673 to 681 in 99ba051
These can have That got it down to:
Those "Redefinition of unused Lines 3 to 20 in 99ba051
I could fix that by getting rid of |
Decided to fix just those "Ambiguous variable name" ones: ruff check . | grep E741 Then iterated through and fixed them all. |
https://beta.ruff.rs/docs/
The text was updated successfully, but these errors were encountered: