forked from rdmorganiser/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (32 loc) · 912 Bytes
/
.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
# pre-commit
# Ref: https://pre-commit.com/#usage
# More hooks: https://pre-commit.com/hooks.html
# ------------------------------------------------------------------------------
repos:
- repo: meta
hooks:
- id: check-hooks-apply
# Check all files for generic issues, e.g. trailing whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# Pretty-format YAML files
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
# Check JSON Schema
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0
hooks:
- id: check-dependabot
- id: check-github-workflows
# Check for typos
- repo: https://github.com/crate-ci/typos
rev: v1.23.2
hooks:
- id: typos