Improve pre-commit spec
@@ -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
@@ -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
