8000 MNT fix ruff type vs isinstance errors by adrinjalali · Pull Request #27039 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MNT fix ruff type vs isinstance errors #27039

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 1 commit into from
Aug 9, 2023

Conversation

adrinjalali
Copy link
Member

Fix issues raised by new ruff. Right now linting is failing on main

@github-actions
Copy link
github-actions bot commented Aug 9, 2023

✔️ Linting Passed

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

Generated for commit: 8d0d771. Link to the linter CI: here

Copy link
Member
@betatim betatim left a comment

Choose a reason for hiding this comment

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

LGTM.

I'd expect a comment in the code if the author (for some obscure reason) really wanted to check the type instead of the usual/normal isinstance.

Copy link
Member
@lesteve lesteve left a comment

Choose a reason for hiding this comment

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

Fine with merging this.

Is there a reason not to pin ruff as with the other linting tools though? It could even be an additional lockfile like we do for the "standard" (build+test) CI builds.

@lesteve lesteve enabled auto-merge (squash) August 9, 2023 09:19
@lesteve lesteve merged commit 8e867b3 into scikit-learn:main Aug 9, 2023
@adrinjalali
Copy link
Member Author

@lesteve we can pin the version, but regarding the lock files, I've had difficulties dealing with them, they're large, and it's very confusing to manage them. So for now I rather stay out of it personally 😁

@adrinjalali adrinjalali deleted the ruff/fix branch August 9, 2023 20:42
@lesteve lesteve mentioned this pull request Aug 18, 2023
TamaraAtanasoska pushed a commit to TamaraAtanasoska/scikit-learn that referenced this pull request Aug 21, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
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.

3 participants
0