-
Notifications
You must be signed in to change notification settings - Fork 49
/
.pre-commit-config.yaml
56 lines (54 loc) · 1.49 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# do not touch the migration files at all: these are auto-generated by Django
exclude: \/migrations\/
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-json
- id: check-xml
exclude: error\.xml$
- id: check-yaml
- id: end-of-file-fixer
exclude: \.html$|\.txt$
- id: trailing-whitespace
exclude: \.dot$
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.12.0
hooks:
- id: eslint
args: [--fix, --color]
additional_dependencies:
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
hooks:
- id: typos
exclude: |
(?x)^(
rdmo/locale/.*|
rdmo/.*_de.html$|
rdmo/.*_es.html$|
rdmo/.*_fr.html$|
rdmo/.*_it.html$|
testing/.*.json|
testing/.*.xml
)$
ci:
autoupdate_schedule: monthly
autofix_prs: false
autoupdate_branch: 'dependency-updates'
autoupdate_commit_msg: 'build(pre-commit): pre-commit autoupdate by ci'