Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (56 loc) · 2.12 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (56 loc) · 2.12 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.12
hooks:
# Run the linter.
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/google/yamlfmt
# Run the formatter.
rev: v0.20.0
hooks:
- id: yamlfmt
- repo: local
hooks:
- id: check-md-links
name: check markdown relative links
entry: uv run python scripts/check_md_links.py
language: system
pass_filenames: false
types: [markdown]
- id: check-spdx-headers
name: check SPDX license headers
entry: uv run python scripts/add_spdx_headers.py --check
language: system
pass_filenames: false
types_or: [python, shell, yaml]
- id: plan-coverage
name: check test-plan coverage
entry: uv run python scripts/test_plan_coverage.py --check
language: system
pass_filenames: false
files: ^(docs/test-plan\.yaml|isvctl/configs/suites/.*\.yaml|scripts/test_plan_coverage\.py)$
- id: validate-suites
name: check tests suites (test_id + labels + platform)
entry: uv run python scripts/validate_suite_wiring.py --check
language: system
pass_filenames: false
files: ^(isvctl/configs/suites/.*\.yaml|isvtest/src/isvtest/catalog\.py|scripts/validate_suite_wiring\.py)$
- id: validate-provider-registry
name: check provider registry entries (schema + name + suites)
entry: uv run python scripts/validate_provider_registry.py --check
language: system
pass_filenames: false
files: ^(isvctl/configs/providers-registry/.*|isvctl/configs/suites/.*\.yaml|isvctl/schemas/provider-registry\.schema\.json|isvctl/src/isvctl/config/provider_registry\.py|scripts/validate_provider_registry\.py)$