Ruff script to automatically ignore lint #10188
yoann9344
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is usually a good idea to select all rules then to ignore all errors, then little by little you can fix it. But while writing new features you'll have all these ignores deactivated by your IDE. So it is interesting to toggle the
ruff.lint.ignore
section. More than that it is interesting, to have sorted and described errors in yourpyproject.toml
. Basically the following tool putruff check --statistics
intoruff.lint.ignore
.requirements :
tomlkit
(to keep toml formatting)By example, it will generate something like this :
Beta Was this translation helpful? Give feedback.
All reactions