Skip to content

chore: use pre-commit and ruff #116

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

Merged
merged 9 commits into from
Oct 16, 2023
Merged

chore: use pre-commit and ruff #116

merged 9 commits into from
Oct 16, 2023

Conversation

kiendang
Copy link
Collaborator

@kiendang kiendang commented Aug 5, 2023

Move all the formatters and linters into pre-commit with ruff. The benefits are:

  • Checks are sped up considerably since you don't have to run each of black, isort, flake8, ... in a separate tox env.
  • black, isort, flake8, ... can be removed from dependencies. Earlier there were problems with updating their versions since they caused dependency conflicts with the framework packages.

@kiendang kiendang requested a review from erikwrede August 5, 2023 16:29
@kiendang kiendang force-pushed the ruff-pre-commit branch 4 times, most recently from 4905b2a to 8c20a38 Compare August 5, 2023 20:51
@kiendang
Copy link
Collaborator Author

kiendang commented Aug 5, 2023

Also added C4 flake8-comprehensions. See graphql-python/graphene-django#1441 (comment).

@kiendang kiendang merged commit 9180278 into master Oct 16, 2023
@kiendang kiendang deleted the ruff-pre-commit branch October 16, 2023 11:57
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