2021-10-31 16:03:18 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.0.1
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: fix-byte-order-marker
|
|
|
|
- id: fix-encoding-pragma
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
- id: mixed-line-ending
|
|
|
|
args:
|
|
|
|
- "--fix=lf"
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-json
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: destroyed-symlinks
|
|
|
|
- id: detect-private-key
|
|
|
|
|
|
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
|
|
rev: 2.3.54
|
|
|
|
hooks:
|
|
|
|
- id: editorconfig-checker
|
2021-11-02 03:26:40 +00:00
|
|
|
args:
|
|
|
|
- "--exclude=Protocol.md"
|
2021-10-31 16:03:18 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
|
|
rev: 4.0.1
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
rev: v0.910-1
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2021-11-02 03:26:40 +00:00
|
|
|
rev: 21.10b0
|
2021-10-31 16:03:18 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.9.3
|
|
|
|
hooks:
|
|
|
|
- id: isort
|