-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.64 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
# pre-commit configuration file
# You may automatically run pre-commit when committing
# by installing hooks as follows:
# pre-commit install
# pre-commit install --hook-type commit-msg
---
fail_fast: false
default_language_version:
python: python3
exclude: 'ext/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
- repo: https://github.com/PyCQA/pylint
rev: v2.8.2
hooks:
- id: pylint
args:
[
"--disable=import-error,no-name-in-module,duplicate-code",
]
- repo: https://github.com/iconmaster5326/cmake-format-pre-commit-hook
rev: v0.6.9
hooks:
- id: cmake-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
types_or: [c++, c]
- repo: https://github.com/cpplint/cpplint
rev: 1.5.5
hooks:
- id: cpplint
files: \.(h|hh|hpp|hxx|h|c|cc|cpp|cxx|c)$
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci # hook for CI environments
args: [--commits, "origin/main..HEAD"]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.7
hooks:
- id: bandit
args: ["-c", "bandit.yaml"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.2
hooks:
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
hooks:
- id: yamllint
args: [--strict]