Skip to content

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

@github-actions
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
@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