-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.pre-commit-config.yaml
80 lines (71 loc) · 2.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: check-release
name: Check release version
entry: tools/check-blurb --release
language: script
stages: [commit,merge-commit]
- id: check-year
name: Check copyright year
entry: tools/check-blurb --year
language: script
stages: [commit,merge-commit]
- id: clang-format
name: Format C/C++ source with clang-format
entry: tools/check-clang-format -style=file -i
language: script
types_or: [c, c++]
stages: [commit,merge-commit]
- repo: https://github.com/asottile/pyupgrade
rev: v2.24.0
hooks:
- id: pyupgrade
name: Modernize python code
args: ["--py3-only"]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
name: Reorder python imports with isort
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black
name: Format python code with black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
name: Lint python code with flake8
additional_dependencies: [flake8-bugbear]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.7.2.1
hooks:
- id: shellcheck
name: Lint shell scripts with shellcheck
exclude: ^utils-src/mond/.*\.sh$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.28.1
hooks:
- id: markdownlint
name: Lint markdown documentation
#- repo: https://gitlab.com/devopshq/gitlab-ci-linter
# rev: v1.0.3
# hooks:
# - id: gitlab-ci-linter
# args: ["--server", "https://git.cmusatyalab.org"]
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes