-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-hooks.yaml
35 lines (33 loc) · 1.21 KB
/
.pre-commit-hooks.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
- id: shfmt
name: shfmt
description: Shell source code formatter (prebuilt upstream executable)
language: python
entry: shfmt
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names
- id: shfmt-src
name: shfmt
description: Shell source code formatter (build from source)
language: golang
# Note: keep Go version in `go.mod` in sync with shfmt's required Go version
additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
entry: shfmt
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names
- id: shfmt-docker
name: shfmt
description: Shell source code formatter (Docker image)
language: docker_image
# Note: use the top level multiplatform image digest here
entry: --net none mvdan/shfmt:v3.10.0@sha256:d19cc37644449fe9a488f234d2c0cf0b770eaf6a5a40e30103e8099013ef8f9e
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names