Skip to content

Commit

Permalink
Revert build back to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Oct 18, 2024
1 parent 53542a3 commit b71bbab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -366,12 +368,12 @@ 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"""
with context.cd(TASK_ROOT_STR):
context.run("ruff check")


namespace.add_task(ruff)
namespace.add_task(ruff)

0 comments on commit b71bbab

Please sign in to comment.