forked from coreruleset/coreruleset
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (35 loc) · 1.07 KB
/
.pre-commit-config.yaml
File metadata and controls
36 lines (35 loc) · 1.07 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
---
ci:
autofix_commit_msg: |
chore(formatting): auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
autofix_prs: true
skip: []
submodules: false
# Update the rev variable with the release version that you want, from the yamllint repo
# You can pass your custom .yamllint with args attribute.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: '^regex-assembly/'
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
args: [-f=github, -c=.yamllint.yml]
files: '\.ya?ml$'
- repo: local
hooks:
- id: run-crs-toolchain
name: run-crs-toolchain
entry: crs-toolchain regex update --all -l error
additional_dependencies: ['github.com/coreruleset/crs-toolchain/v2@v2.4.0']
language: golang
pass_filenames: false
files: '^regex-assembly/'