-
Notifications
You must be signed in to change notification settings - Fork 226
/
.pre-commit-config.yaml
59 lines (44 loc) · 1.34 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: [ pre-commit, pre-push ]
exclude: ^src/(bin/|web_interface/static/package-lock.json)
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" ]