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

Switch out black for ruff format #1698

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Conversation

nicholasjng
Copy link
Contributor

Saves one pre-commit hook, some pyproject.toml configuration, and provides much better performance with identical behavior.

(Black style and ruff format style are only 99.x% compatible, but their deviations are very small, and none of them happen in this codebase. See also https://docs.astral.sh/ruff/formatter/#black-compatibility)

Saves one pre-commit hook, some pyproject.toml configuration,
and provides much better performance with almost identical behavior.
@dmah42 dmah42 merged commit 159eb2d into google:main Nov 10, 2023
53 of 60 checks passed
@nicholasjng nicholasjng deleted the ruff-format branch April 15, 2024 16:46
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