diff --git a/tasks.py b/tasks.py index b86af9ed..b43800f4 100644 --- a/tasks.py +++ b/tasks.py @@ -99,6 +99,8 @@ def mypy(context): """Run mypy optional static type checker""" with context.cd(TASK_ROOT_STR): context.run("mypy cmd2") + with context.cd(str(TASK_ROOT / 'examples')): + context.run("mypy decorator_example.py") namespace.add_task(mypy) @@ -308,7 +310,7 @@ def validatetag(context): def sdist(context): """Create a source distribution""" with context.cd(TASK_ROOT_STR): - context.run('python -m build --sdist') + context.run('python setup.py sdist') namespace.add_task(sdist) @@ -318,7 +320,7 @@ def sdist(context): def wheel(context): """Build a wheel distribution""" with context.cd(TASK_ROOT_STR): - context.run('python -m build') + context.run('python setup.py bdist_wheel') namespace.add_task(wheel) @@ -366,7 +368,7 @@ def format(context): namespace.add_task(format) -# Black and isort auto-formatting +# Ruff fast auto-formatter and linter @invoke.task() def ruff(context): """Run ruff auto-formatter and linter""" @@ -374,4 +376,4 @@ def ruff(context): context.run("ruff check") -namespace.add_task(ruff) +namespace.add_task(ruff) \ No newline at end of file