Skip to content

Bump pre-commit ruff version + define options in pyproject.toml#1647

Open
jbusecke wants to merge 2 commits intomainfrom
sort-out-linting
Open

Bump pre-commit ruff version + define options in pyproject.toml#1647
jbusecke wants to merge 2 commits intomainfrom
sort-out-linting

Conversation

@jbusecke
Copy link
Copy Markdown
Contributor

@jbusecke jbusecke commented Feb 13, 2026

Closes #1644

I encountered some inconsistent behavior between running the linting locally and with pre-commit. This simply bumps the pre-commit version and pins the ruff version in pyproject.toml to the same version. I also set the --fix and --show-fixes options on the pyproject.toml rather than in pre-commit to have one central place of control.

Some linting output has changed, please let me know if we should stick with the older version for consistency.

@jbusecke jbusecke marked this pull request as ready for review February 13, 2026 22:05

[tool.ruff]
fix = true
show-fixes = true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this standard in other projects? Isn't it weird having tools changing your code without you explicitly asking? I'm OK with if this is common.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm that is a good question actually. My goal here was to align pre-commit and manually running ruff, but after thinking about it, maybe this is a bad idea.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But FWIW pre-commit was already doing this!

@jbusecke
Copy link
Copy Markdown
Contributor Author

@paraseba I think that this issue will be solved by #1674 and then Ill refactor this to a pure version bump for ruff!

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.

Contributor Guide instructions for linting do not work

2 participants