-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
66 lines (58 loc) · 1.68 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
fail_fast: true
exclude: (.*3rdparty/.*|.*vs2015/.*|.*vs2019/.*|.*asset/.*|.*docs/.*|.*gallery/.*)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: shfmt
args: [-i, "2", -ci]
- id: shellcheck
args: [-e, SC2230]
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.9.0
hooks:
- id: markdownlint-cli2
args: [--fix]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
hooks:
- id: cmake-format
- id: cmake-lint
args: ['--linelength=150']
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: Sort Python imports
files: (\.py)$
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: Fix Python code format
files: (\.py)$
language_version: python3
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: ["black==22.1.0"]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
name: Check PEP8 on Python code
files: (\.py)$
additional_dependencies: [flake8-bugbear==22.12.6]
args: ["--max-line-length=120", "--extend-ignore=E203"]