From 422f8ddca869d835612771e53362c4f48a1f868f Mon Sep 17 00:00:00 2001 From: Mariana Ulaieva Date: Apr 28 2020 10:35:22 +0000 Subject: Add mypy for testing Add type hints and static analysis. --- diff --git a/.gitignore b/.gitignore index 4904909..4ad110f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ tests/test_freshmaker.db freshmaker.db .pytest_cache +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json diff --git a/tox.ini b/tox.ini index 8a43a06..2e7f8da 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py37, flake8, bandit +envlist = py37, flake8, bandit, mypy [testenv] basepython = python3 @@ -27,6 +27,13 @@ skip_install = true deps = flake8 commands = flake8 +[testenv:mypy] +description = type check +deps = + mypy +commands = + mypy --ignore-missing-imports freshmaker + [testenv:bandit] basepython = python3 skip_install = true