Add precommit.
+exclude: ^(docs|.*test_files|cmd_line|dev_scripts)
+
+default_language_version:
+ python: python3.8
+
repos:
+ - repo: https://github.com/psf/black
+ rev: 22.1.0
+ hooks:
+ - id: black
+
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.3.0
+ rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- - id: flake8
- args: ["--max-line-length=120"]
- - repo: https://github.com/psf/black
- rev: 20.8b1 # Replace by any tag/version: https://github.com/psf/black/tags
+
+ # - repo: https://github.com/PyCQA/flake8
+ # rev: 4.0.1
+ # hooks:
+ # - id: flake8
+
+ - repo: https://github.com/asottile/pyupgrade
+ rev: v2.31.0
hooks:
- - id: black
- language_version: python3 # Should be a command that runs python3.6+
+ - 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
