Skip to content
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

MNT upgrade black version #28802

Merged
merged 2 commits into from
Apr 10, 2024
Merged

MNT upgrade black version #28802

merged 2 commits into from
Apr 10, 2024

Conversation

adrinjalali
Copy link
Member

Motivated by seeing recently that a few contributors ended up submitting changes unrelated to their PRs, realized we haven't updated our linting tools in a while.

Upgrades black version.

I'll submit another PR immediately after this to ignore these changes in our git ignore rev file.

cc @scikit-learn/core-devs

Copy link

github-actions bot commented Apr 10, 2024

✔️ Linting Passed

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

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

@lorentzenchr
Copy link
Member

We already use ruff. Why not migrate to using ruff instead?
https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

The changes look okay. LGTM.

@thomasjpfan
Copy link
Member

We already use ruff. Why not migrate to using ruff instead?
https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black

We can do this as long as we turn on --preview:

preview = true

Turning off preview means we opt out of black's string preprocessing. Ruff does not support string preprocessing right now: astral-sh/ruff#6936

Also the future of string preprocessing in black is uncertain: psf/black#4208

@adrinjalali
Copy link
Member Author

Should we merge then? This is the kind of PR which can't stay stale for long 😁

@thomasjpfan thomasjpfan merged commit c4c5463 into scikit-learn:main Apr 10, 2024
30 checks passed
@adrinjalali adrinjalali deleted the ci/ruff branch April 11, 2024 12:51
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.

4 participants