-
Notifications
You must be signed in to change notification settings - Fork 469
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
ci: Configure ruff
#1893
base: master
Are you sure you want to change the base?
ci: Configure ruff
#1893
Conversation
@@ -87,6 +87,56 @@ known-first-party= ["pint"] | |||
|
|||
|
|||
[tool.ruff] | |||
extend-select = [ | |||
# "F", # pyflakes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you included all options here, such that one can slowly work towards following all these rules 😄
@hgrecco note that you should still enable the ruff checksexplicitly, e.g. |
Thanks a lot! isort is enabled now! |
Well, isort was only an example, could you look over https://docs.astral.sh/ruff/rules/? Pyflake, pathlib, there are various rules that should be enabled, and most of them are straightforward to apply |
I did read it, but I am not going to enable all in bulk. I am leaning to add B, E, W and UP (in addition to the already present "E4", "E7", "E9", "F" and I) |
ruff
pre-commit #1892pre-commit run --all-files
with no errorsSee https://github.com/LecrisUT/pint/actions/runs/7144167989/job/19457214051?pr=1 for the failing tests