Skip to content

Commit

Permalink
Replace old pre-commit config with ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
elevans committed Aug 23, 2024
1 parent d12410b commit a0ae875
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,8 @@
repos:
# First, autoflake the code to avoid issues that could be solved quickly
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports"]
# Then, flake
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- "flake8-typing-imports"
- "Flake8-pyproject"
# Next, sort imports
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
# Finally, lint
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.10.1
hooks:
- id: validate-pyproject
- repo: https://github.com/astral-sh/ruff-pre-commit
# ruff version
rev: v0.6.2
hooks:
# run the linter
- id: ruff
# run the formatter
- id: ruff-format

0 comments on commit a0ae875

Please sign in to comment.