-
Notifications
You must be signed in to change notification settings - Fork 605
/
.pre-commit-config.yaml
157 lines (157 loc) · 3.77 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
ci:
autofix_commit_msg: "style: auto fixes from pre-commit.ci hooks"
autofix_prs: false
autoupdate_commit_msg: "chore(deps): pre-commit.ci autoupdate"
skip:
- actionlint-system
- deadnix
- just
- nixpkgs-fmt
- prettier
- ruff
- ruff-format
- shellcheck
- shfmt
- statix
- taplo
default_stages:
- pre-commit
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint-system
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: local
hooks:
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: ruff
language: system
types_or:
- python
- pyi
args: ["check", "--force-exclude", "--output-format=full", "--fix"]
require_serial: true
minimum_pre_commit_version: "2.9.2"
- repo: local
hooks:
- id: ruff-format
name: ruff-format
description: "Run 'ruff' for extremely fast Python linting"
entry: ruff
language: system
types_or:
- python
- pyi
args: ["format", "--force-exclude"]
require_serial: true
minimum_pre_commit_version: "2.9.2"
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=800"]
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: end-of-file-fixer
exclude: (.+/snapshots/.+)|(.*docs/_freeze/.+\.json)|(.+\.excalidraw)
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
exclude: .+/snapshots/.+
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: local
hooks:
- id: prettier
name: prettier
language: system
entry: prettier
args: ["--write"]
types_or:
- javascript
- json
- markdown
- yaml
- id: taplo
name: taplo
language: system
entry: taplo
args: ["fmt"]
types:
- toml
- id: shellcheck
name: shellcheck
language: system
entry: shellcheck
args: ["--shell", "bash"]
types_or:
- sh
- shell
- ash
- bash
- bats
- dash
- ksh
- id: shfmt
name: shfmt
language: system
entry: shfmt
args: ["-i", "2", "-sr", "-s"]
types_or:
- sh
- shell
- ash
- bash
- bats
- dash
- ksh
- id: just
name: just
language: system
entry: just
args: ["--fmt", "--unstable"]
files: ^justfile$
pass_filenames: false
- id: nixpkgs-fmt
name: nixpkgs-fmt
language: system
entry: nixpkgs-fmt
types:
- nix
- id: statix
name: statix
language: system
entry: statix
args: ["fix"]
pass_filenames: false
types:
- nix
- id: deadnix
name: deadnix
language: system
entry: deadnix
args: ["--edit", "--fail"]
types:
- nix