- 
                Notifications
    You must be signed in to change notification settings 
- Fork 83
chore: switch to ruff linter #1289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: switch to ruff linter #1289
Conversation
| @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 👏 | 
| Hey @jackwotherspoon, please let me know if there's any other changes / thoughts you have 😁 | 
There was a problem hiding this 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 👍
| /gcbrun | 
27f6de3
      into
      
  
    GoogleCloudPlatform:main
  
    | Thanks once again @colinchambachan 👏 ⭐ We really value these open-source contributions 😄 | 
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 inpyproject.toml.Happy to get some feedback and update accordingly
Related to #1226