-
Notifications
You must be signed in to change notification settings - Fork 225
/
.pre-commit-config.yaml
59 lines (44 loc) · 1.3 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
default_stages: [ commit, push ]
exclude: ^src/bin/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [ --maxkb=10000 ]
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: fix-encoding-pragma
args: [ --remove ]
- id: file-contents-sorter
files: src/unpacker/passwords|_list.txt
- id: forbid-new-submodules
- id: no-commit-to-branch
- id: pretty-format-json
args: [ --autofix ]
exclude: ^src/web_interface/static/package-lock.json
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: shellcheck
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
- repo: https://github.com/pre-commit/mirrors-jshint
rev: v2.13.0
hooks:
- id: jshint
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.2.2'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
hooks:
- id: markdownlint
args: [ "--config", ".markdownlint.yaml" ]