@@ -99,6 +99,8 @@ def mypy(context):
9999 """Run mypy optional static type checker"""
100100 with context .cd (TASK_ROOT_STR ):
101101 context .run ("mypy cmd2" )
102+ with context .cd (str (TASK_ROOT / 'examples' )):
103+ context .run ("mypy decorator_example.py" )
102104
103105
104106namespace .add_task (mypy )
@@ -308,7 +310,7 @@ def validatetag(context):
308310def sdist (context ):
309311 """Create a source distribution"""
310312 with context .cd (TASK_ROOT_STR ):
311- context .run ('python -m build -- sdist' )
313+ context .run ('python setup.py sdist' )
312314
313315
314316namespace .add_task (sdist )
@@ -318,7 +320,7 @@ def sdist(context):
318320def wheel (context ):
319321 """Build a wheel distribution"""
320322 with context .cd (TASK_ROOT_STR ):
321- context .run ('python -m build ' )
323+ context .run ('python setup.py bdist_wheel ' )
322324
323325
324326namespace .add_task (wheel )
@@ -366,12 +368,12 @@ def format(context):
366368namespace .add_task (format )
367369
368370
369- # Black and isort auto-formatting
371+ # Ruff fast auto-formatter and linter
370372@invoke .task ()
371373def ruff (context ):
372374 """Run ruff auto-formatter and linter"""
373375 with context .cd (TASK_ROOT_STR ):
374376 context .run ("ruff check" )
375377
376378
377- namespace .add_task (ruff )
379+ namespace .add_task (ruff )
0 commit comments