Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

ci: Configure ruff #1893

wants to merge 6 commits into from

Conversation

LecrisUT
Copy link

@LecrisUT LecrisUT commented Dec 8, 2023

See https://github.com/LecrisUT/pint/actions/runs/7144167989/job/19457214051?pr=1 for the failing tests

@@ -87,6 +87,56 @@ known-first-party= ["pint"]


[tool.ruff]
extend-select = [
# "F", # pyflakes

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 added a commit that referenced this pull request Mar 9, 2024
@LecrisUT
Copy link
Author

LecrisUT commented Mar 9, 2024

@hgrecco note that you should still enable the ruff checksexplicitly, e.g. isort. This PR is still relevant

@hgrecco
Copy link
Owner

hgrecco commented Mar 9, 2024

Thanks a lot! isort is enabled now!

@LecrisUT
Copy link
Author

LecrisUT commented Mar 9, 2024

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

@hgrecco
Copy link
Owner

hgrecco commented Mar 9, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ruff pre-commit
3 participants