8000 MNT Ignore ruff errors by lesteve · Pull Request #27094 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MNT Ignore ruff errors #27094

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 18, 2023
Merged

MNT Ignore ruff errors #27094

merged 1 commit into from
Aug 18, 2023

Conversation

lesteve
Copy link
Member
@lesteve lesteve commented Aug 18, 2023

Seems very similar to #27039, probably due to the release of ruff yesterday. This is breaking everyone PRs.

Maybe another argument for pinning ruff?

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 can't decide if this should be type() == or if this should be using isinstance. Given that this code hasn't been changed for ~four years (or even longer) I think using the noqa is fine. Maybe something to condsider for the future is if we can make linting less pedantic for tests (maybe we allow some "weird" constructs in our tests that in the library wouldn't be allowed.)

@glemaitre
Copy link
Member

I am also think that we should pin the version of ruff in the near future ;)

@glemaitre glemaitre merged commit 4560ee9 into scikit-learn:main Aug 18, 2023
@lesteve lesteve deleted the fix-ruff branch August 18, 2023 09:09
TamaraAtanasoska pushed a commit to TamaraAtanasoska/scikit-learn that referenced this pull request Aug 21, 2023
akaashpatelmns pushed a commit to akaashp2000/scikit-learn that referenced this pull request Aug 25, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
jeremiedbb pushed a commit that referenced this pull request Sep 20, 2023
elindgren pushed a commit to elindgren/scikit-learn that referenced this pull request Oct 5, 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