This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
107 lines (94 loc) · 2.79 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# 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
language: system
stages: [commit]
types: [python]
- id: gitlint
name: gitlint
entry: gitlint
args: [--msg-filename]
language: system
stages: [commit-msg]
- id: hadolint
name: hadolint
language: docker_image
entry: hadolint/hadolint:v2.2.0 hadolint
stages: [commit]
types: [dockerfile]
- id: isort
name: isort
entry: isort
language: system
stages: [commit]
types: [python]
- 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: pretty-format-ini
name: Pretty format INI
entry: pretty-format-ini
args: [--autofix]
language: system
stages: [commit]
types: [ini]
- id: pretty-format-toml
name: Pretty format TOML
entry: pretty-format-toml
args: [--autofix]
language: system
stages: [commit]
types: [toml]
exclude: ^.*\.lock
- id: pylint
name: pylint
entry: pylint
language: system
stages: [commit]
types: [python]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: 3f77b826548d8dc2d26675f077361c92773b50a7 # frozen: v0.9.0
hooks:
- id: shellcheck
stages: [commit]
# TODO: Kill if https://github.com/pre-commit/identify/issues/350 is fixed
- id: shellcheck
files: ^\.envrc$
types: []
stages: [commit]
- repo: https://github.com/scop/pre-commit-shfmt
rev: f21b778d68a3930f77d7424821022e81e3ae17d7 # frozen: v3.6.0-1
hooks:
- id: shfmt
stages: [commit]
# TODO: Kill if https://github.com/pre-commit/identify/issues/350 is fixed
- id: shfmt
files: ^\.envrc$
types: []
stages: [commit]
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: 6740ea881d3ac5942d4fbf124f5956b896666c76 # frozen: v1.3.0
hooks:
- id: nixpkgs-fmt
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: cafd5506f18eea191804850dacc0a4264772d59d # frozen: v3.0.0-alpha.4
hooks:
- id: prettier
stages: [commit]