-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
67 lines (54 loc) · 1.68 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
59
60
61
62
63
64
65
66
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
name: check for added large files
description: prevents giant files from being committed.
entry: check-added-large-files
language: python
stages: [commit, push, manual]
- id: check-executables-have-shebangs
name: check that executables have shebangs
description: ensures that (non-binary) executables have a shebang.
entry: check-executables-have-shebangs
language: python
types: [text, executable]
stages: [commit, push, manual]
- id: check-yaml
name: check yaml
description: checks yaml files for parseable syntax.
entry: check-yaml
args: ["--allow-multiple-documents"]
language: python
exclude: '.ytt.yaml$'
types: [yaml]
- repo: local
hooks:
# - id: shfmt
# name: shfmt
# entry: shfmt -w -i 4
# language: golang
# additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
# types: [shell]
- id: actionlint
name: actionlint
entry: actionlint
language: golang
additional_dependencies: [github.com/rhysd/actionlint/cmd/[email protected]]
types: [yaml]
files: "^.github/workflows/"
# FIXME: fails on composite actions
# files: "^.github/workflows/|action.yml"
##########
# pre-commit-ci config
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false