-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
74 lines (66 loc) · 1.78 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
74 lines (66 loc) · 1.78 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
fail_fast: false
# Priority 0: Read-only hooks; trailing whitespace
# Priority 1: end-of-file-fixer
# Priority 2: prettier, Ruff linter
# Priority 3: zizmor, Ruff formatter
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
priority: 0
- id: end-of-file-fixer
priority: 1
- id: check-yaml
priority: 0
- id: check-toml
priority: 0
- id: check-merge-conflict
priority: 0
- id: check-case-conflict
priority: 0
- id: name-tests-test
priority: 0
args: [--pytest-test-first]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
priority: 0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.26.1
hooks:
- id: zizmor
args: [--fix=safe]
priority: 3
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.3
hooks:
- id: check-renovate
language: python # means renovate will update the `additional_dependencies` for the hook
additional_dependencies:
- "json5"
priority: 0
- id: check-github-workflows
priority: 0
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.9.1
hooks:
- id: prettier
types: [yaml]
priority: 2
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
priority: 0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi]
require_serial: true
priority: 2
- id: ruff-format
priority: 3