-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
88 lines (88 loc) · 2.45 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
repos:
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.3
hooks:
- id: prettier
types_or:
- toml
- css
- json
- json5
- markdown
- yaml
additional_dependencies:
- prettier
- prettier-plugin-toml
minimum_pre_commit_version: 2.9.0
args:
- --cache
- --cache-location=.prettier-cache
- --ignore-path=.gitignore
exclude: ^tests
- repo: https://github.com/mondeja/project-config
rev: v0.9.6
hooks:
- id: project-config
- repo: meta
hooks:
- id: check-hooks-apply
name: check-hooks-apply
- id: check-useless-excludes
name: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: trailing-whitespace
exclude: tests/test_unit/(test_po2md/translate-examples/code-blocks.*|test_event\.py)
- id: end-of-file-fixer
name: end-of-file-fixer
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
files: \.bat$
name: "*.bat end of lines"
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
hooks:
- id: check-github-workflows
name: check-github-workflows
args:
- --verbose
- 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-autopep8
rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.0.3
hooks:
- id: editorconfig-checker
name: editorconfig-checker
alias: ec
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
hooks:
- id: markdownlint-cli2
name: markdownlint-po2md-tests
language: node
entry: sh -c 'cd tests/test_unit/test_po2md && exec markdownlint-cli2 translate-examples/*.md wrapwidth-examples/*.md'
pass_filenames: false
types:
- markdown
files: ^tests/test_unit/test_po2md/
- repo: https://github.com/mondeja/rust-pc-hooks
rev: v1.3.0
hooks:
- id: lychee