diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-11 10:33:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-11 10:33:15 -0400 |
commit | 1bcf59856fae624e72153c631b94a1c7cca17d9e (patch) | |
tree | 5bbe4bae072111bf7209701a36d5d39f050fc9ef /tasks.py | |
parent | dd299bf5bf21b175ffdd2caae63cfa8bf1a85c34 (diff) | |
parent | 608e290c43510dff1cc7256816f1dd242f77a607 (diff) | |
download | cmd2-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.py | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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") |