Skip to content

Conversation

@anatoly-scherbakov
Copy link
Collaborator

@anatoly-scherbakov anatoly-scherbakov commented Dec 21, 2025

Why

We do not have a code formatter that would help us unify the codebase.

What

Implement ruff. Run it in CI, but only against one file: to taste it and to reduce the probability of git conflicts.

@anatoly-scherbakov anatoly-scherbakov linked an issue Dec 21, 2025 that may be closed by this pull request
@anatoly-scherbakov anatoly-scherbakov self-assigned this Dec 21, 2025
@anatoly-scherbakov anatoly-scherbakov requested review from BigBlueHat, davidlehn and mielvds and removed request for mielvds December 21, 2025 19:13
@anatoly-scherbakov anatoly-scherbakov marked this pull request as ready for review December 21, 2025 19:15
Copy link
Collaborator

@mielvds mielvds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big supporter of this; I use ruff myself. Flake8 is also fine, as long as there is some formatter. Ruff includes flake8 & beyond, so obvious choice

@mielvds
Copy link
Collaborator

mielvds commented Dec 22, 2025

@anatoly-scherbakov maybe one question: is the config aligned with the one from rdflib?

@anatoly-scherbakov
Copy link
Collaborator Author

@mielvds not sure, can look into a comparison 👀

It won't be a 100% match since rdflib relies on black for formatting. Then again, black does not expose many config options. I can check.

@anatoly-scherbakov
Copy link
Collaborator Author

@mielvds I have checked this out and found two particular differences, fixed.

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.

Try out ruff

3 participants