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

STY: Use ruff instead of black for formatting #56704

Merged
merged 6 commits into from
Jan 4, 2024

Conversation

mroeschke
Copy link
Member

No description provided.

Copy link
Member

@twoertwein twoertwein left a comment

Choose a reason for hiding this comment

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

I like how ruff seems to handle the typing ignore codes slightly differently than black:

  • seems like they are ignored from the line length limit (no more running mypy again after formatting moves the ignore code around); and
  • ruff seems to also prefer to split arguments across lines when multiple were previously covered by a single ignore comments (this makes it easier to know which argument is causing "troubles")

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@rhshadrach
Copy link
Member

I've only taken a partial look, so not a full review, but from what I've seen this looks great.

@mroeschke mroeschke added this to the 3.0 milestone Jan 3, 2024
@twoertwein twoertwein merged commit 2522b0a into pandas-dev:main Jan 4, 2024
50 checks passed
@twoertwein
Copy link
Member

Thanks @mroeschke!

(Merging quickly after you just rebased to avoid other PRs where ruff and black could potentially diverge.)

@mroeschke mroeschke deleted the sty/ruff/format branch January 4, 2024 00:51
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* STY: Use ruff instead of black for formatting

* mypy

* move pylint

* Remove trailing comma:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants