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

[Linting] Add Ruff formatter - replace black #4748

Merged
merged 9 commits into from
Dec 19, 2023

Conversation

jond01
Copy link
Member

@jond01 jond01 commented Dec 17, 2023

Ruff's formatter and Black are mostly compatible except for some corner cases that also appear here.
https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black
It's much faster, though, and now make lint takes less than 0.5 sec.

Resolves ML-5300 together with #4740.
I recommend reviewing this commit by commit.

https://docs.astral.sh/ruff/formatter/

I have reviewed the changes in all the files.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@liranbg liranbg merged commit 28be879 into mlrun:development Dec 19, 2023
9 checks passed
@jond01 jond01 deleted the task/ruff-formatter branch December 19, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants