-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
87 lines (87 loc) · 2.73 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: '\.patch'
- id: end-of-file-fixer
exclude: '^docs/overrides'
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: check-merge-conflict
- id: check-yaml
args:
- --allow-multiple-documents
exclude: mkdocs.yml
- id: check-yaml
name: check-yaml-mkdocs
# --unsafe is a workaround for the use of !! in mkdocs.yml
args: [--unsafe]
files: mkdocs.yml
- id: check-symlinks
- repo: https://github.com/adrienverge/yamllint
rev: v1.33.0
hooks:
- id: yamllint
args: [-c, .yamllint.yaml]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
hooks:
- id: check-jsonschema
name: validate argo workflows / workflowtemplates
args:
- --schemafile
- schema/argo-workflows.json
files: "workflows/argo-events/workflowtemplates/.*.(yml|yaml)$"
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
files: '^docs/'
- repo: https://github.com/crate-ci/typos
rev: v1.26.8
hooks:
- id: typos
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: '1.7.1'
hooks:
- id: poetry-check
language_version: "3.11"
name: "poetry-check (understack-workflows)"
files: '^python/understack-workflows/'
args: ["-C", "python/understack-workflows"]
- id: poetry-lock
language_version: "3.11"
name: "poetry-lock (understack-workflows)"
files: '^python/understack-workflows/'
args: ["-C", "python/understack-workflows", "--no-update"]
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.114.0
hooks:
- id: renovate-config-validator
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.387
hooks:
- id: pyright
files: '^python/understack-workflows/'
args: ["--threads"]
additional_dependencies:
# python-pyright stupidly does not allow local paths
# https://github.com/pre-commit/pre-commit/issues/1752#issuecomment-754252663
- "git+https://github.com/rackerlabs/understack.git@main#subdirectory=python/understack-flavor-matcher"
- "kubernetes"
- "pydantic"
- "pynautobot"
- "pytest"
- "pytest-mock"
- "pytest_lazy_fixtures"
- "python-ironicclient"
- "requests"
- "sushy"
- "types-requests"