Skip to content

Conversation

Alvaro-Kothe
Copy link
Contributor

Xref #62434

The way that pandas the CI is setup, it won't verify when people fix the B905 rule. I created a list of files that violates it with

ruff check . --no-fix --select B905 | sed -n 's/ *--> \([^:]*\):.*/"\1" = ["B905"]/p' | sort | uniq

This will simplify the automatic verification, because when they fix these rules in a file, they must remove the entry in pyproject.toml, and if any modifications are necessary, it will flag in ruff (legacy alias) pre-commit hook.

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Sep 25, 2025
@mroeschke mroeschke added this to the 3.0 milestone Sep 25, 2025
@mroeschke mroeschke merged commit 44ef1cf into pandas-dev:main Sep 25, 2025
29 of 49 checks passed
@mroeschke
Copy link
Member

Great! Thanks @Alvaro-Kothe

@Alvaro-Kothe Alvaro-Kothe deleted the chore/specify-B905 branch September 25, 2025 19:00
jzwick pushed a commit to jzwick/pandas that referenced this pull request Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants