Skip to content

Commit 8674d33

Browse files
committed
Add pyright type checking for understack-workflows python code
Note that we hard-code python deps because the pre-commit checker operates in its own independent venv and cannot access the deps that poetry installs. This seems broken, as it allows the versions to drift. However it is better than nothing.
1 parent 416d889 commit 8674d33

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,19 @@ repos:
6565
rev: 38.114.0
6666
hooks:
6767
- id: renovate-config-validator
68+
- repo: https://github.com/RobertCraigie/pyright-python
69+
rev: v1.1.387
70+
hooks:
71+
- id: pyright
72+
files: '^python/understack-workflows/'
73+
args: ["--threads"]
74+
additional_dependencies:
75+
- "kubernetes"
76+
- "pydantic"
77+
- "pynautobot"
78+
- "pytest"
79+
- "pytest_lazy_fixtures"
80+
- "python-ironicclient"
81+
- "requests"
82+
- "sushy"
83+
- "types-requests"

0 commit comments

Comments
 (0)