-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
64 lines (56 loc) · 1.62 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
# Configuration file for pre-commit (https://pre-commit.com/)
# Please run `pre-commit run --all-files` when adding or changing entries.
repos:
- repo: local
hooks:
- id: black
name: black
entry: black
types: [python]
language: system
stages: [commit]
- id: gitlint
name: gitlint
entry: gitlint
args: [--fail-without-commits, --staged, --msg-filename]
language: system
stages: [commit-msg]
- id: isort
name: isort
entry: isort
types: [python]
language: system
stages: [commit]
- id: mypy
name: mypy
entry: mypy
language: system
stages: [commit]
types_or: [python, pyi]
require_serial: true
- id: pathchk
name: pathchk
entry: pathchk
args: [--portability]
exclude: ^([a-zA-Z0-9._][a-zA-Z0-9._-]+)(/[a-zA-Z0-9._][a-zA-Z0-9._-]+)*$ # https://lists.gnu.org/archive/html/coreutils/2023-01/msg00006.html
language: system
stages: [commit]
- id: pylint
name: pylint
entry: pylint
types: [python]
language: system
stages: [commit]
- id: shellcheck
name: shellcheck
entry: shellcheck
args: [--external-sources]
types: [shell]
language: system
stages: [commit]
- repo: https://github.com/scop/pre-commit-shfmt
rev: f21b778d68a3930f77d7424821022e81e3ae17d7 # frozen: v3.6.0-1
hooks:
- id: shfmt
args: [--case-indent, --indent=4, --list, --space-redirects, --write]
stages: [commit]