Update precommit.
@@ -3,6 +3,10 @@ exclude: ^(docs|.*test_files|cmd_line|dev_scripts)
default_language_version:
python: python3.8
+ci:
+ autoupdate_schedule: monthly
+ skip: [flake8, autoflake, mypy]
+
repos:
- repo: https://github.com/psf/black
rev: 22.1.0
@@ -16,10 +20,10 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- # - repo: https://github.com/PyCQA/flake8
- # rev: 4.0.1
- # hooks:
- # - id: flake8
+ - repo: https://github.com/PyCQA/flake8
+ rev: 4.0.1
+ hooks:
+ - id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
@@ -27,18 +31,18 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- # - repo: https://github.com/myint/autoflake
- # rev: v1.4
- # hooks:
- # - id: autoflake
- # args:
- # - --in-place
- # - --remove-unused-variables
- # - --remove-all-unused-imports
- # - --expand-star-imports
- # - --ignore-init-module-imports
-
- # - repo: https://github.com/pre-commit/mirrors-mypy
- # rev: v0.930
- # hooks:
- # - id: mypy
+ - repo: https://github.com/myint/autoflake
+ rev: v1.4
+ hooks:
+ - id: autoflake
+ args:
+ - --in-place
+ - --remove-unused-variables
+ - --remove-all-unused-imports
+ - --expand-star-imports
+ - --ignore-init-module-imports
+
+ - repo: https://github.com/pre-commit/mirrors-mypy
+ rev: v0.930
+ hooks:
+ - id: mypy
