Skip to content

Conversation

@kylemumma
Copy link
Member

@kylemumma kylemumma commented Jan 8, 2026

This PR replaces black(formatting), isort(import formatting), flake8 (linter) with ruff which is faster and does all 3 in one, it is the new industry standard.

This PR migrates to ruff and reformats+lints the entire codebase with it. Its a large diff but we should just be able to rollback if things break.

You can see this commit for the main changes that actually migrate to ruff 65852d3 the rest of the diff is just from running the formatter ruff format there was a single linting change made to this file, but it is logically equivalent since it was duplicate keys

flake8-bugbear adds additional linting on top of flake8, our previous flake8 config enabled this but we didnt have flake8-bugbear installed in our dependencies so it wasnt actually being run. For now I disable bugbear, as a follow up I will enable it for new changes.

@kylemumma kylemumma marked this pull request as ready for review January 12, 2026 19:52
@kylemumma kylemumma requested review from a team as code owners January 12, 2026 19:52
"E302", # expected 2 blank lines, found N
"E501", # line too long (handled by formatter)
"E402", # module level import not at top of file
"E712", # comparison to True/False
Copy link
Contributor

Choose a reason for hiding this comment

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

Why ignore those ones? Especially E266, E302 or E712? Is it to match current behavior?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes all the ignores are to match the previous configuration. But I would support getting rid of any ignores, and re-adding if we need it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants