Skip to content

Commit

Permalink
Improve pre-commit spec
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Mar 12, 2022
1 parent fa19945 commit 0c6dddd
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ default_language_version:

ci:
autoupdate_schedule: monthly
skip: [flake8, autoflake, mypy]
skip: [flake8, mypy]

repos:
- repo: https://github.com/psf/black
rev: 22.1.0

- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: black
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- --expand-star-imports
- --ignore-init-module-imports

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: isort
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
Expand All @@ -26,27 +34,21 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: flake8
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- id: black

- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- --expand-star-imports
- --ignore-init-module-imports
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.930
Expand Down

0 comments on commit 0c6dddd

Please sign in to comment.