-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
120 lines (106 loc) · 2.88 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3
# ignore anything in gameinfo and fonts as we don't author these ourself
# .changes is generated by changie
# scripts is generated by other people/tools
exclude: |
(?x)^(
.changes/.*|
gameinfo/.*|
fonts/.*|
scripts/.*
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--unsafe]
- id: check-added-large-files
# use this and NOT the one in jumanjihouse; it supports the enable/disable
# markup
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
hooks:
- id: markdownlint
args: [--ignore, .changes/*md, --ignore, CHANGELOG.md]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
# - id: bundler-audit
# - id: check-mailmap
# - id: fasterer
# - id: forbid-binary
# - id: forbid-space-in-indent
- id: git-check
- id: git-dirty
# - id: markdownlint
# - id: reek
# - id: require-ascii
# - id: rubocop
# - id: script-must-have-extension
# - id: script-must-not-have-extension
- id: shellcheck
# - id: shfmt
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.81.0
hooks:
- id: terraform_fmt
# - id: terraform_docs
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
hooks:
- id: yamllint
args: [--format, parsable, --strict]
exclude: ^.changes/unreleased
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.5
hooks:
- id: shellcheck
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--offset, '2', --mapping, '2', --sequence, '4']
exclude: ^.changes/
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-build-mod
- id: go-test-mod
- id: go-sec-mod
- id: go-vet-mod
- id: go-fmt
- id: go-imports
- id: go-returns
# - id: go-lint
- id: go-revive
# - id: go-critic
# - id: golangci-lint-mod
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.5.0
hooks:
- id: commitlint
stages: [commit-msg]
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.2
hooks:
- id: hadolint
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.10
- repo: local
hooks:
- id: pylint
name: pylint
entry: poetry run pylint
language: system
files: ^botcpdf/
types: [python]