Skip to content

Conversation

@colinchambachan
Copy link
Contributor

This PR migrates the linting and formatting process from using flake8, isort, and black to Ruff.

@jackwotherspoon, I currently have the ruleset to the default, as when I enabled other rules ("I" for isort, or E501 for line length), it would catch issues that weren't flagged pre-ruff. We can extend the default ruleset using extend-select=["E501", "I" ...] under the [tool.ruff] section in pyproject.toml.

Happy to get some feedback and update accordingly

Related to #1226

@colinchambachan colinchambachan marked this pull request as ready for review April 19, 2025 14:41
@colinchambachan colinchambachan requested a review from a team as a code owner April 19, 2025 14:41
@colinchambachan colinchambachan marked this pull request as draft April 19, 2025 14:42
@jackwotherspoon
Copy link
Collaborator

@colinchambachan Let me know if you need myself or @kgala2 to help finish this and get it across the line. We are happy to assist if need be 😄

Thanks a ton for the contributions 👏

@colinchambachan
Copy link
Contributor Author

Hey @jackwotherspoon, please let me know if there's any other changes / thoughts you have 😁

Copy link
Collaborator

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

@colinchambachan can you run nox -s format on your PR and commit the changes ruff would make. This will make the lint job happy and green for future builds 👍

@jackwotherspoon
Copy link
Collaborator

/gcbrun

@jackwotherspoon jackwotherspoon merged commit 27f6de3 into GoogleCloudPlatform:main May 6, 2025
11 of 12 checks passed
@jackwotherspoon
Copy link
Collaborator

Thanks once again @colinchambachan 👏 ⭐

We really value these open-source contributions 😄

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.

3 participants