Skip to content

Commit

Permalink
Add mypy testing to invoke tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lfdebrux committed Feb 26, 2021
1 parent 49af940 commit 7835c31
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7835c31

Please sign in to comment.