From 7835c311e613d08fb514ee34e445c3444e13b648 Mon Sep 17 00:00:00 2001 From: Laurence de Bruxelles Date: Mon, 22 Feb 2021 16:01:24 +0000 Subject: [PATCH] Add mypy testing to invoke tasks --- tasks.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)