Skip to content

MNT Enforce ruff/pygrep-hooks rules (PGH) #31226

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 6 commits into from
Apr 28, 2025

Conversation

DimitriPapadopoulos
Copy link
Contributor

What does this implement/fix? Explain your changes.

Use specific rule codes when ignoring type issues and noqa.

Any other comments?

Also fix a few issues surfacing after removing blanket noqa.

Use specific rule codes when using `noqa`
Copy link

github-actions bot commented Apr 18, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: bf9a7d7. Link to the linter CI: here

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the PGH branch 3 times, most recently from 52c2606 to 0410534 Compare April 18, 2025 21:51
Use specific rule codes when ignoring type issues
Import block is un-sorted or un-formatted
f-string without any placeholders
Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

I don't mind this. Please make sure you also add this to the git ignore revisions.

@adrinjalali adrinjalali enabled auto-merge (squash) April 28, 2025 08:44
@adrinjalali adrinjalali merged commit b98dc79 into scikit-learn:main Apr 28, 2025
35 of 36 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the PGH branch April 28, 2025 10:30
DimitriPapadopoulos added a commit to DimitriPapadopoulos/scikit-learn that referenced this pull request Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants