Skip to content

Commit dcddf18

Browse files
committed
Set up mypy tests
1 parent 56824bf commit dcddf18

5 files changed

Lines changed: 254 additions & 4 deletions

File tree

pdm.lock

Lines changed: 154 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ lint = [
99
test = [
1010
"hypothesis>=6.79.4",
1111
"pytest>=7.4.0",
12-
"pytest-benchmark>=4.0.0",
1312
"immutables>=0.20",
1413
"typing-extensions>=4.7.1",
1514
"coverage>=7.2.7",
@@ -26,6 +25,11 @@ docs = [
2625
]
2726
bench = [
2827
"pyperf>=2.6.1",
28+
"pytest-benchmark>=4.0.0",
29+
]
30+
tests-mypy = [
31+
"pytest-mypy-plugins>=3.0.0",
32+
"mypy>=1.7.1",
2933
]
3034

3135
[build-system]
@@ -96,7 +100,7 @@ bson = [
96100
]
97101

98102
[tool.pytest.ini_options]
99-
addopts = "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname"
103+
addopts = "-l --mypy-only-local-stub --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname"
100104

101105
[tool.coverage.run]
102106
parallel = true

0 commit comments

Comments
 (0)