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

Use ruff format to replace black #1473

Merged
merged 4 commits into from Oct 25, 2023
Merged

Use ruff format to replace black #1473

merged 4 commits into from Oct 25, 2023

Conversation

kiendang
Copy link
Collaborator

Ruff formatter (a black-compatible code formatter built into ruff) is out of beta today https://astral.sh/blog/the-ruff-formatter.
Replace the black pre-commit hook with ruff-format hook for faster formatting.

Copy link
Collaborator

@sjdemartini sjdemartini left a comment

Choose a reason for hiding this comment

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

Sweet! ruff ftw! Thank you!

@firaskafri firaskafri merged commit 36cf100 into main Oct 25, 2023
12 checks passed
@firaskafri firaskafri deleted the ruff-format branch October 25, 2023 08:33
superlevure pushed a commit to loft-orbital/graphene-django that referenced this pull request Dec 6, 2023
* Use ruff format to replace black

* Adjust ruff config to be compatible with ruff-format

https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

* Format

* Replace black with ruff format in Makefile
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.

None yet

3 participants