2021-01-01 07:48:28 +00:00
|
|
|
exclude: '^.*patches|.*\.cgi$'
|
2020-06-27 12:57:48 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v2.3.0
|
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2020-06-28 18:24:40 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2020-09-24 10:28:10 +00:00
|
|
|
rev: 20.8b1
|
2020-06-28 18:24:40 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
|
|
rev: 3.7.8
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
types: [file, python]
|
|
|
|
# only check for unused imports, as the rest is done by black
|
|
|
|
args: [--select=F401]
|
2020-08-16 17:35:32 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
rev: v0.782
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
args:
|
|
|
|
- --ignore-missing-imports
|
2020-12-31 01:57:41 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: clang-format
|
|
|
|
name: clang-format-6.0
|
|
|
|
language: system
|
|
|
|
entry: ./tools/clang-format-precommit.sh
|