Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (55 loc) · 1.78 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
62 lines (55 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
repos:
- repo: builtin
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: ruff format
name: ruff format
entry: uv run ruff format --force-exclude
types: [python]
language: system
- id: ruff check
name: ruff check
entry: uv run ruff check --fix --force-exclude
types: [python]
language: system
- id: basedpyright
name: basedpyright
entry: uv run basedpyright
language: system
require_serial: true
types_or: [python, pyi]
- id: sync-readme-examples
name: sync README examples
entry: uv run python .github/scripts/sync_readme_examples.py
language: system
files: ^(README\.md|docs/examples/.*)$
pass_filenames: false
- id: check-documented-inputs
name: check documented inputs
entry: uv run python .github/scripts/check_documented_inputs.py
language: system
files: ^(README\.md|action\.ya?ml|docs/examples/.*)$
pass_filenames: false
- id: actionlint
name: actionlint
entry: uv run actionlint
types: [yaml]
# Unlike zizmor, actionlint reads every file it's given as a workflow,
# so action.yml is not in this list.
files: (\.github/workflows/.*\.ya?ml$)|(docs/examples/.*\.ya?ml$)
language: system
require_serial: true
- id: zizmor
name: zizmor
entry: uv run zizmor --fix=all
types: [yaml]
files: (\.github/(workflows/.*|dependabot.ya?ml))|(action\.ya?ml)$|(docs/examples/.*\.ya?ml$)
language: system
require_serial: true
args:
- "--persona=auditor"