Skip to content

Commit 2c2675d

Browse files
committed
add mypy and pyright as dev dependencies
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 6ce7065 commit 2c2675d

File tree

3 files changed

+152
-0
lines changed

3 files changed

+152
-0
lines changed

mise.toml

+12
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ _.python.venv = { path = ".venv", create = true }
99
[tasks.test]
1010
description = "run tests"
1111
run = "uv run pytest"
12+
13+
[tasks.lint]
14+
description = "run linter and static analyzers"
15+
depends = ["mypy", "pyright"]
16+
17+
[tasks.mypy]
18+
description = "run mypy static analyzer"
19+
run = "uv run mypy lib/ tests/"
20+
21+
[tasks.pyright]
22+
description = "run pyright static analyzer"
23+
run = "uv run pyright lib/"

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ dev = [
1616
"ansible>=5.0.1",
1717
"bs4>=0.0.1",
1818
"cryptography>=3.3.1",
19+
"mypy>=1.14.1",
1920
"packaging>=20.7",
2021
"pluggy>=1.1.0",
2122
"pycodestyle>=2.6.0",
23+
"pyright>=1.1.398",
2224
"pytest>=8.0.0",
2325
"pyyaml>=6.0",
2426
]

0 commit comments

Comments
 (0)