-
Notifications
You must be signed in to change notification settings - Fork 172
ci: Add ruff to dev
#2811
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
Merged
Merged
ci: Add ruff to dev
#2811
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following (#2803), two (`PD002`) ignores are no longer needed - https://github.com/narwhals-dev/narwhals/blob/54bf3d3ec77092d4babc970f245efc2185274e96/narwhals/_pandas_like/group_by.py#L217 - https://github.com/narwhals-dev/narwhals/blob/54bf3d3ec77092d4babc970f245efc2185274e96/narwhals/_pandas_like/group_by.py#L264 `pre-commit` autoupdate enforces the latest version of `ruff` in ci, but we don't have anything syncing this with `pyproject.toml`. A solution for now is just to leave it unpinned, so at least it'll install the latest when updating a local `venv`
Member
|
thanks - not sure tbh, i think we should rather just have it in pre-commit, and if anyone doesn't want to use pre-commit then it's on them to self-manage |
Member
Author
MarcoGorelli
approved these changes
Jul 9, 2025
Member
MarcoGorelli
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.
Member
Author
|
Thanks for understanding @MarcoGorelli! If this comes up again as an issue, we could always try out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Following (#2803), two (
PD002) ignores are no longer neededPrevious
narwhals/narwhals/_pandas_like/group_by.py
Line 217 in 54bf3d3
narwhals/narwhals/_pandas_like/group_by.py
Line 264 in 54bf3d3
mainnarwhals/narwhals/_pandas_like/group_by.py
Line 217 in 8afbeec
narwhals/narwhals/_pandas_like/group_by.py
Line 264 in 8afbeec
Notes
pre-commitautoupdate enforces the latest version ofruffin ci, but we don't have anything syncing this withpyproject.toml.A solution for now is just to leave it unpinned, so at least it'll install the latest when updating a local
venvThose lines have moved in (#2680), and still require the (
PD002) ignore - so I think the removal is related toruff's type inference changing under-the-hoodnarwhals/narwhals/_pandas_like/group_by.py
Line 331 in 46282e8