-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
49 lines (49 loc) · 1.47 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: pretty-format-json
args: [--autofix]
- id: check-yaml
- id: check-json
- id: check-ast
- id: trailing-whitespace
- id: check-xml
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=2000"]
- id: check-symlinks
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: chmod
args: ["777"]
files: (.*scripts\/.*.py$|\.sh$)
- id: remove-tabs
args: [--whitespaces-count, '4']
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--trailing-comma", "--multi-line=3", "--force-grid-wrap=2", "--combine-as", "--use-parentheses", "--force-sort-within-sections", "--line-length=140"]
- repo: https://github.com/PyCQA/pylint
rev: v3.2.5
hooks:
- id: pylint
args: ["--rcfile=./pylintrc"]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: uncrustify
args: [ --replace, --no-backup, -c, uncrustify.cfg]