summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-06-11 10:33:15 -0400
committerGitHub <noreply@github.com>2018-06-11 10:33:15 -0400
commit1bcf59856fae624e72153c631b94a1c7cca17d9e (patch)
tree5bbe4bae072111bf7209701a36d5d39f050fc9ef /tasks.py
parentdd299bf5bf21b175ffdd2caae63cfa8bf1a85c34 (diff)
parent608e290c43510dff1cc7256816f1dd242f77a607 (diff)
downloadcmd2-git-1bcf59856fae624e72153c631b94a1c7cca17d9e.tar.gz
Merge pull request #439 from python-cmd2/test_bash_complete
Minor formatting changes to argcomplete_bridge.py
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 5c0bd772..ac525517 100644
--- a/tasks.py
+++ b/tasks.py
@@ -49,11 +49,26 @@ namespace.add_task(pytest)
def pytest_clean(context):
"Remove pytest cache and code coverage files and directories"
#pylint: disable=unused-argument
- dirs = ['.pytest-cache', '.cache', 'htmlcov', '.coverage']
+ dirs = ['.pytest_cache', '.cache', 'htmlcov', '.coverage']
rmrf(dirs)
namespace_clean.add_task(pytest_clean, 'pytest')
@invoke.task
+def mypy(context):
+ "Run mypy optional static type checker"
+ context.run("mypy main.py")
+ namespace.add_task(mypy)
+namespace.add_task(mypy)
+
+@invoke.task
+def mypy_clean(context):
+ "Remove mypy cache directory"
+ #pylint: disable=unused-argument
+ dirs = ['.mypy_cache']
+ rmrf(dirs)
+namespace_clean.add_task(mypy_clean, 'mypy')
+
+@invoke.task
def tox(context):
"Run unit and integration tests on multiple python versions using tox"
context.run("tox")