Skip to content

Commit e486866

Browse files
committed
Add mypy to tox configuration
Now that all very obvious type problems are resolved, mypy can be used in the static analysis part.
1 parent 68493b4 commit e486866

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ universal=1
33

44
[aliases]
55
test=pytest
6+
7+
[mypy]
8+
ignore_missing_imports = True
9+
warn_return_any = True
10+
warn_unreachable = True
11+
warn_unused_ignores = True

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = flake8,py36,py37,py38,py39
2+
envlist = flake8,mypy,py36,py37,py38,py39
33
skip_missing_interpreters = True
44

55
[testenv]
@@ -15,3 +15,8 @@ usedevelop = True
1515
[testenv:flake8]
1616
deps = flake8
1717
commands = flake8 --show-source watson/ tests/ scripts/
18+
19+
20+
[testenv:mypy]
21+
deps = mypy==0.812
22+
commands = mypy watson/ tests/ scripts/

0 commit comments

Comments
 (0)