-
Notifications
You must be signed in to change notification settings - Fork 28
/
.pre-commit-config.yaml
118 lines (105 loc) · 3.3 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
---
# This file configures https://pre-commit.com/
# to use specific hooks and options.
fail_fast: false
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
hooks:
- id: yamllint
args: [--format, parsable, --strict]
exclude: ^.pre-commit-hooks.yaml$
- repo: local
hooks:
- id: yamlfmt
name: Format YAML files
description: Format YAML files
entry: pre_commit_hooks/yamlfmt
language: python
types: [yaml]
additional_dependencies:
- ruamel.yaml
exclude: .pre-commit-hooks.yaml
- repo: local
hooks:
- id: yamlfmt
name: Format YAML files with overrides
description: Format YAML files with overrides
entry: pre_commit_hooks/yamlfmt
language: python
files: .pre-commit-hooks.yaml
additional_dependencies:
- ruamel.yaml
args: [--mapping, '2', --sequence, '2', --offset, '0']
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: check-mailmap
- id: forbid-binary
exclude: assets/.*
- id: git-check # Configure in .gitattributes
- id: git-dirty # Configure in .gitignore
- id: markdownlint
- id: require-ascii
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shellcheck
- id: shfmt
args: [-d, -i 4, -ci]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
- repo: https://github.com/PyCQA/pylint
rev: v3.0.0a6
hooks:
- id: pylint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-toml
- id: check-xml
- id: check-yaml
exclude: ci/multidoc-after.yaml # check-yaml fails on multi-doc
- id: detect-private-key
- id: requirements-txt-fixer
- id: sort-simple-yaml
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: forbid-crlf
- id: forbid-tabs
exclude_types: # Types come from "identify-cli".
- makefile
- go
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
hooks:
- id: gitlint
stages: [commit-msg]
- id: gitlint
entry: gitlint --commits upstream/master..
exclude: .*
always_run: true
stages: [manual]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: [--baseline, ci/secrets.baseline]