-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
104 lines (91 loc) · 3.18 KB
/
.pre-commit-hooks.yaml
File metadata and controls
104 lines (91 loc) · 3.18 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
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
- id: docker-image-pin
name: docker-image-pin
description: Checks if Docker images are properly pinned in docker-compose.yml and Dockerfile files
entry: docker-image-pin
language: python
# types_or: [yaml, dockerfile] # This excludes things like `blah.Dockerfile`
files: docker-compose\.ya?ml$|Dockerfile$
- id: gha-pin
name: gha-pin
description: Checks if GitHub Actions are properly pinned
entry: gha-pin
language: python
types: [yaml]
- id: shfuncdecfmt
name: shfuncdecfmt
description: Shell function declaration formatter
entry: shfuncdecfmt
language: python
types: [shell]
- id: set-euo-pipefail
name: set-euo-pipefail
description: Add `set -euo pipefail` to shell scripts
entry: set-euo-pipefail
language: python
types: [shell]
- id: pre-commit-additional-dependencies
name: pre-commit-additional-dependencies
description: Sync pre-commit additional_dependencies with pyproject.toml and uv.lock
entry: pre-commit-additional-dependencies
language: python
pass_filenames: false
files: ^pyproject.toml$|^uv.lock$|^.pre-commit-config.yaml$
- id: pre-commit-ci-skip
name: pre-commit-ci-skip
description: "Add `language: system` hooks to `ci: skip:` automatically"
entry: pre-commit-ci-skip
language: python
files: ^.pre-commit-config.yaml$
- id: pre-commit-config-sections-shell
name: pre-commit-config.yaml sections (shell)
description: Check that sections are included for the included languages
entry: pre-commit-config-sections shell
language: python
pass_filenames: false
types: [shell]
- id: pre-commit-config-sections-python
name: pre-commit-config.yaml sections (python)
description: Check that sections are included for the included languages
entry: pre-commit-config-sections python
language: python
pass_filenames: false
types: [python]
- id: pre-commit-config-sections-docker
name: pre-commit-config.yaml sections (docker)
description: Check that sections are included for the included languages
entry: pre-commit-config-sections docker
language: python
pass_filenames: false
files: docker-compose\.ya?ml$|Dockerfile$
- id: pre-commit-config-sections-pytest
name: pre-commit-config.yaml sections (pytest)
description: Check that sections are included for the included languages
entry: pre-commit-config-sections pytest
language: python
pass_filenames: false
files: ^tests/.*\.py$
- id: pre-commit-config-sections-gha
name: pre-commit-config.yaml sections (gha)
description: Check that sections are included for the included languages
entry: pre-commit-config-sections gha
language: python
pass_filenames: false
files: ^.github/workflows/
- id: bumpsync
name: bumpsync
description: Simple version synchronizer
entry: bumpsync
language: python
types: [text]
- id: docker-apt-renovate
name: docker-apt-renovate
description: Helps with pinning apt packages in Dockerfiles, and bumping them with Renovate
entry: docker-apt-renovate
language: python
types: [dockerfile]
- id: pre-commit-config-fmt
name: pre-commit-config-fmt
description: Formats your .pre-commit-config.yaml with sensible newlines.
entry: pre-commit-config-fmt
language: python
files: ^.pre-commit-config.yaml$