@@ -99,6 +99,8 @@ def mypy(context):
99
99
"""Run mypy optional static type checker"""
100
100
with context .cd (TASK_ROOT_STR ):
101
101
context .run ("mypy cmd2" )
102
+ with context .cd (str (TASK_ROOT / 'examples' )):
103
+ context .run ("mypy decorator_example.py" )
102
104
103
105
104
106
namespace .add_task (mypy )
@@ -308,7 +310,7 @@ def validatetag(context):
308
310
def sdist (context ):
309
311
"""Create a source distribution"""
310
312
with context .cd (TASK_ROOT_STR ):
311
- context .run ('python -m build -- sdist' )
313
+ context .run ('python setup.py sdist' )
312
314
313
315
314
316
namespace .add_task (sdist )
@@ -318,7 +320,7 @@ def sdist(context):
318
320
def wheel (context ):
319
321
"""Build a wheel distribution"""
320
322
with context .cd (TASK_ROOT_STR ):
321
- context .run ('python -m build ' )
323
+ context .run ('python setup.py bdist_wheel ' )
322
324
323
325
324
326
namespace .add_task (wheel )
@@ -366,12 +368,12 @@ def format(context):
366
368
namespace .add_task (format )
367
369
368
370
369
- # Black and isort auto-formatting
371
+ # Ruff fast auto-formatter and linter
370
372
@invoke .task ()
371
373
def ruff (context ):
372
374
"""Run ruff auto-formatter and linter"""
373
375
with context .cd (TASK_ROOT_STR ):
374
376
context .run ("ruff check" )
375
377
376
378
377
- namespace .add_task (ruff )
379
+ namespace .add_task (ruff )
0 commit comments