-
Notifications
You must be signed in to change notification settings - Fork 6k
Bump ruff and remove sort-all #4075
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
Conversation
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.
Hey! Looks like you edited the (optional) requirements or the pre-commit hooks. I'm just a friendly reminder to keep the additional dependencies for the hooks in sync with the requirements :)
|
huh, my pre-commit did not report those errors (differences in python version?).. also it seems like |
Bibo-Joshi
left a comment
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.
different python version could certainly be. ruff always wants me to use typing.Self when running on py3.11 …
|
Interesting thing I found about |
Also fix satisfy ruff errors
well I misunderstood what that option is for. It's only meant for local setups where you want your git to automatically install the |
And tell mypy to be 3.8 compliant
Bibo-Joshi
left a comment
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.
LGTM :) Is there anything left from your side or should I merge?
|
@Bibo-Joshi all good from my side |
Removes sort-all since ruff now supports sorting
__all__. Also adds 2 more ruff rules:Also forces pre-commit to use python 3.12, to ensure consistency between different hooks and between locally run pre-commit and CI pre-commit