-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
97 lines (85 loc) · 2.44 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
89
90
91
92
93
94
95
96
97
---
default_language_version:
python: python3
node: system
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: name-tests-test
args:
- --pytest-test-first
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
exclude: \.gitignore
- repo: local
hooks:
- id: ruff-format
name: Ruff (Format)
description: Format Python files
language: system
entry: pdm run format
types_or:
- python
- pyi
- id: ruff-lint
name: Ruff (Lint)
description: Lint Python files
language: system
entry: pdm run lint
args:
- --exit-non-zero-on-fix
types_or:
- python
- pyi
- id: pyright
name: Pyright
description: Type-check Python files
language: system
entry: pdm run type-check
types_or:
- python
- pyi
pass_filenames: false
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: aa1acdb72677dfbc5f507d2dfd45d8380bbcc2e0 # frozen: 0.29.3
hooks:
- id: check-github-workflows
- repo: https://github.com/lyz-code/yamlfix
rev: 8072181c0f2eab9f2dd8db2eb3b9556d7cd0bd74 # frozen: 1.17.0
hooks:
- id: yamlfix
args:
- --config-file
- .yamlfix.toml
- repo: https://github.com/adrienverge/yamllint
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # frozen: v1.35.1
hooks:
- id: yamllint
args:
- --strict
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: aa975a18c9a869648007d33864034dbc7481fe5e # frozen: v0.42.0
hooks:
- id: markdownlint-fix
- repo: https://github.com/ComPWA/mirrors-taplo
rev: 4ef242b660e0f7c7c953b9d8289e302c3f49bfbc # frozen: v0.8.1
hooks:
- id: taplo
- repo: https://github.com/sirwart/ripsecrets
rev: 033ec5192b738b6712701be920cba545c2775050 # frozen: v0.1.8
hooks:
- id: ripsecrets
- repo: https://github.com/crate-ci/typos
rev: 90477f2eb803a5b93ba2d132dfae945dae790dc7 # frozen: v1.25.0
hooks:
- id: typos
args: []