-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (52 loc) · 1.63 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (52 loc) · 1.63 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
# run on only items staged in git: pre-commit
# automatically run on commit: pre-commit install
# check all files in repo: pre-commit run --all-files
# check all files manual stage: pre-commit run --all-files --hook-stage manual
# update all checks to latest: pre-commit autoupdate
# https://github.com/pre-commit/pre-commit-hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: ["--maxkb=150"]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-xml
- id: end-of-file-fixer
# exclude svg:
exclude: '\.(svg)$'
# https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/
# - id: mixed-line-ending
# args: ['--fix=no']
- id: trailing-whitespace
# args: [--markdown-linebreak-ext=md]
- id: detect-private-key
# - id: no-commit-to-branch
# args: [--branch, main]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
args: [-c=.yamllint.yaml]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.3
hooks:
- id: check-github-workflows
args: ["--verbose"]
- id: check-dependabot
- repo: meta
hooks:
- id: check-useless-excludes
- id: check-hooks-apply
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
- repo: https://github.com/crate-ci/typos
rev: v1.30.0
hooks:
- id: typos