2021-06-16 10:44:00 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
2021-06-16 11:46:09 +00:00
|
|
|
|
2021-06-20 16:54:37 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-01-10 19:23:18 +00:00
|
|
|
rev: v4.1.0
|
2021-06-20 16:54:37 +00:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-case-conflict
|
2021-06-16 11:46:09 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/myint/autoflake
|
|
|
|
rev: v1.4
|
|
|
|
hooks:
|
2021-06-20 16:54:37 +00:00
|
|
|
- id: autoflake
|
2021-06-16 11:46:09 +00:00
|
|
|
|
|
|
|
- repo: http://github.com/PyCQA/isort
|
2022-01-10 19:23:18 +00:00
|
|
|
rev: 5.10.1
|
2021-06-16 11:46:09 +00:00
|
|
|
hooks:
|
2021-06-20 16:54:37 +00:00
|
|
|
- id: isort
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2022-01-10 19:23:18 +00:00
|
|
|
rev: v0.931
|
2021-06-20 16:54:37 +00:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
files: prototorch
|
|
|
|
additional_dependencies: [types-pkg_resources]
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-yapf
|
2022-01-10 19:23:18 +00:00
|
|
|
rev: v0.32.0
|
2021-06-20 16:54:37 +00:00
|
|
|
hooks:
|
|
|
|
- id: yapf
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
|
|
rev: v1.9.0
|
|
|
|
hooks:
|
|
|
|
- id: python-use-type-annotations
|
|
|
|
- id: python-no-log-warn
|
|
|
|
- id: python-check-blanket-noqa
|
|
|
|
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-01-10 19:23:18 +00:00
|
|
|
rev: v2.31.0
|
2021-06-20 16:54:37 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
|
|
|
|
- repo: https://github.com/si-cim/gitlint
|
|
|
|
rev: v0.15.2-unofficial
|
|
|
|
hooks:
|
|
|
|
- id: gitlint
|
|
|
|
args: [--contrib=CT1, --ignore=B6, --msg-filename]
|