We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2b319 commit 608e290Copy full SHA for 608e290
tasks.py
@@ -53,6 +53,21 @@ def pytest_clean(context):
53
rmrf(dirs)
54
namespace_clean.add_task(pytest_clean, 'pytest')
55
56
+@invoke.task
57
+def mypy(context):
58
+ "Run mypy optional static type checker"
59
+ context.run("mypy main.py")
60
+ namespace.add_task(mypy)
61
+namespace.add_task(mypy)
62
+
63
64
+def mypy_clean(context):
65
+ "Remove mypy cache directory"
66
+ #pylint: disable=unused-argument
67
+ dirs = ['.mypy_cache']
68
+ rmrf(dirs)
69
+namespace_clean.add_task(mypy_clean, 'mypy')
70
71
@invoke.task
72
def tox(context):
73
"Run unit and integration tests on multiple python versions using tox"
0 commit comments