Skip to content

lint python code with ruff #299

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

lint python code with ruff #299

wants to merge 3 commits into from

Conversation

glehmann
Copy link
Contributor

I've used the same rules as in the xcp repository, but we probably want to remove some of them or add some more.
Look at the commit that fixes errors to get an idea of what you may or may not like.
All the available rules are documented at https://docs.astral.sh/ruff/rules/

same as xcp repository.
Some checks are excluded in the tests directory, because pytest imposes
to use some imports as functions arguments, and the linter doesn't know
about that.

Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
@glehmann glehmann requested review from stormi and ydirson April 15, 2025 06:07
Signed-off-by: Gaëtan Lehmann <[email protected]>
@glehmann glehmann force-pushed the gln/ci-ruff-fixes-wqyp branch from 4822ecc to 08f9b93 Compare April 15, 2025 06:07
@glehmann
Copy link
Contributor Author

no hurry on this review, it's there to trigger a discussion :-)

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.

1 participant