diff --git a/tasks.py b/tasks.py index fc489852..9818776e 100644 --- a/tasks.py +++ b/tasks.py @@ -1 +1,12 @@ +from invoke import task + from dmdevtools.invoke_tasks import library_tasks as ns + + +@task(ns["virtualenv"], ns["requirements_dev"]) +def test_mypy(c): + c.run("mypy dmutils/") + + +ns.add_task(test_mypy) +ns["test"].pre.insert(-1, test_mypy)