-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
85 lines (85 loc) · 2.04 KB
/
.pre-commit-config.yaml
File metadata and controls
85 lines (85 loc) · 2.04 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
75
76
77
78
79
80
81
82
83
84
85
---
ci:
# We rely on renovate to update it but there is no way to fully disable it
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
skip:
# https://github.com/pre-commit-ci/issues/issues/55
- codespell
- cspell
- mypy
- pylint
- ruff
- toml
- yamllint
submodules: true
repos:
- repo: meta
hooks:
- id: check-useless-excludes
priority: 0
- repo: https://github.com/ansible/actions
rev: v1.0.1
hooks:
- id: toml
priority: 0
- id: mypy
priority: 2
- id: ruff
priority: 1
- id: cspell
priority: 0
- id: pylint
priority: 5
- id: codespell
priority: 0
- id: yamllint
priority: 0
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.9
hooks:
- id: uv-sync
- id: uv-lock
- id: uv-lock
name: "deps: upgrade via uv sync --upgrade"
alias: deps
args: ["--upgrade"]
stages: [manual]
- repo: https://github.com/biomejs/pre-commit
rev: "v2.4.6"
hooks:
- id: biome-check
name: biome
alias: biome
args: [--unsafe]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: check-added-large-files
priority: 0
- id: check-merge-conflict
priority: 0
- id: check-symlinks
priority: 0
- id: debug-statements
priority: 0
- id: detect-private-key
priority: 0
- id: end-of-file-fixer
priority: 1
- id: trailing-whitespace
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/asottile/pyupgrade
# keep it after flake8
rev: v3.21.2
hooks:
- id: pyupgrade
args: ["--py39-plus"]