-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (64 loc) · 1.73 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (64 loc) · 1.73 KB
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
default_language_version:
python: python3.13
default_stages: [pre-commit]
repos:
- repo: local
hooks:
- id: code-check
name: code-check (local)
entry: uv run make check
language: system
pass_filenames: false
- id: pip-audit-local
name: pip-audit (local)
entry: uv run make pip-audit
language: system
pass_filenames: false
verbose: true
- id: test-docker
name: test-docker (local)
entry: make test-docker
language: system
stages: [pre-push]
pass_filenames: false
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^docs/
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: check-toml
- id: check-yaml
exclude: docker-compose.test.yml
- id: detect-private-key
- id: debug-statements
- id: check-merge-conflict
- id: mixed-line-ending
args: ["--fix=lf"]
- id: no-commit-to-branch
args: [--branch, develop, --branch, dev, --branch, master, --branch, main]
- repo: https://github.com/crate-ci/typos
rev: v1.40.0
hooks:
- id: typos
args: [--force-exclude]
- repo: https://github.com/google/yamlfmt
rev: v0.20.0
hooks:
- id: yamlfmt
name: YAML formatter
files: (^|/).*\.ya?ml$
args:
- "--conf"
- ".yamlfmt"
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
args: ["--severity=warning"]