Skip to content

Commit 3a8c83f

Browse files
committed
Add type checking
In this case I have gone with pytype because in general I like their approach, but mypy works fine as well. The main upside of mypy would be that we would not be stuck using python3.7 for this, which is very unfortunate.
1 parent 3859271 commit 3a8c83f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ docs/_build/
1717
.mypy_cache
1818
.pytest_cache
1919
.tox
20+
.pytype
2021

2122
# Temporary files
2223
tmp/

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ deps =
1212
commands =
1313
python update.py {posargs}
1414

15+
[testenv:pytype]
16+
description = Run typechecking
17+
basepython = python3.7
18+
skip_install = True
19+
deps =
20+
pytype
21+
commands =
22+
pytype {posargs} update.py
23+
1524
[testenv:format]
1625
description = Run auto formatters
1726
skip_install = True

0 commit comments

Comments
 (0)