Skip to content

Commit

Permalink
feat(dx): replace pyupgrade/autoflake hooks with ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Mar 13, 2023
1 parent f820baa commit 3c47ebd
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,29 @@ exclude: |
)$
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args:
- --py3-plus
- --keep-runtime-typing
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.1
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.245"
hooks:
- id: autoflake
- id: ruff
args:
- --recursive
- --in-place
- --remove-all-unused-imports
- --ignore-init-module-imports
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- --fix
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/python-poetry/poetry
rev: 1.3.0
rev: 1.4.0
hooks:
- id: poetry-check
- id: poetry-export
Expand Down

0 comments on commit 3c47ebd

Please sign in to comment.