Skip to content

Commit 604d081

Browse files
committed
Call mypy in CI
1 parent 0cf28f4 commit 604d081

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,18 @@ requires = ["setuptools>=45", "setuptools_scm>=6.2", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
6+
7+
[tool.mypy]
8+
check_untyped_defs = true
9+
10+
[[tool.mypy.overrides]]
11+
module = [
12+
"setuptools_scm",
13+
"f90nml",
14+
"h5py",
15+
"matplotlib.*",
16+
"mpl_toolkits.*",
17+
"pandas",
18+
"scipy.*",
19+
]
20+
ignore_missing_imports = true

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ deps =
2222
commands =
2323
flake8 setup.py stagpy/ tests/
2424

25+
[testenv:mypy]
26+
deps =
27+
mypy>=0.910
28+
commands=
29+
mypy --install-types --non-interactive stagpy/
2530

2631
[pytest]
2732
testpaths = tests

0 commit comments

Comments
 (0)