Skip to content

ruff 0.16.1 check --fix (what ruff considers safe fixes) - #448

Open
gkreitz wants to merge 2 commits into
Kattis:masterfrom
gkreitz:ruff_0_16_1_safe_fixes
Open

ruff 0.16.1 check --fix (what ruff considers safe fixes)#448
gkreitz wants to merge 2 commits into
Kattis:masterfrom
gkreitz:ruff_0_16_1_safe_fixes

Conversation

@gkreitz

@gkreitz gkreitz commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Ruff 0.16 enabled a ton of new checks by default. We probably want to move to 0.16, but that will be a bit of a pain.

This PR is a first step in that direction by simply running ruff check . --fix with 0.16.1, applying what ruff considers to be safe fixes (and in my experience, those are indeed safe).

@gkreitz

gkreitz commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

... and of course we run into a corner case. We had a class with a field named type. Ruff moved from Type[Self] to type[self] which caused mypy to be confused. So there's one manual fix in this PR too, moving to builtins.type in two class methods in metadata.

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