aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-12-08 19:28:02 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-12-08 19:28:02 +0100
commit3934e4379e6445720fe991bd0263936a9542601b (patch)
tree7e1c609880e807a84796b4a2a85618cb9936a674 /tox.ini
parent2fae8e0d39f436976d90cfb94ac31a1a4427771d (diff)
downloadfietsboek-3934e4379e6445720fe991bd0263936a9542601b.tar.gz
fietsboek-3934e4379e6445720fe991bd0263936a9542601b.tar.bz2
fietsboek-3934e4379e6445720fe991bd0263936a9542601b.zip
first try with mypy
It would be nice to gradually improve the typing situation in Fietsboek. At least the parts that do not do heavy metaprogramming should have types. For most of the API, we already have types in the doc strings, so those could be removed then.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 13 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 66e9870..9f69f7e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ per-file-ignores =
fietsboek/models/__init__.py:F401
[tox]
-envlist = python,pylint,pylint-tests,flake8
+envlist = python,pylint,pylint-tests,flake8,mypy
isolated_build = true
[testenv]
@@ -44,3 +44,15 @@ allowlist_externals = make
changedir={toxinidir}{/}doc
commands =
make html
+
+[testenv:mypy]
+deps =
+ mypy
+ types-Markdown
+ types-bleach
+ types-babel
+ types-redis
+ types-requests
+usedevelop = true
+commands =
+ mypy fietsboek