-
Notifications
You must be signed in to change notification settings - Fork 51
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.38 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
exclude: ^(\.tools\/|example\/|k8s\/)
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
hooks:
- id: python-use-type-annotations
exclude: ^(\.tools\/|example\/|k8s\/)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py|sh)$
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: debug-statements
exclude: ^(\.tools\/|example\/|k8s\/)
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- repo: local
hooks:
- id: copyright_checker
name: copyright_checker
entry: python .tools/codestyle/copyright.py
language: system
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py|sh)$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
exclude: ^(\.tools\/|example\/|k8s\/)
args: ['--max-line-length=100', '--extend-ignore=E203']
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
files: .sh$
exclude: ^(\.tools\/|example\/|k8s\/)