@@ -109,6 +109,7 @@ def check_quality(ctx: Context) -> None:
109109 ctx .run (
110110 ruff .check (* PY_SRC_LIST , config = "config/ruff.toml" ),
111111 title = pyprefix ("Checking code quality" ),
112+ command = f"ruff check --config config/ruff.toml { PY_SRC } " ,
112113 )
113114
114115
@@ -126,7 +127,11 @@ def check_dependencies(ctx: Context) -> None:
126127 allow_overrides = False ,
127128 )
128129
129- ctx .run (safety .check (requirements ), title = "Checking dependencies" )
130+ ctx .run (
131+ safety .check (requirements ),
132+ title = "Checking dependencies" ,
133+ command = "pdm export -f requirements --without-hashes | safety check --stdin" ,
134+ )
130135
131136
132137@duty
@@ -138,7 +143,12 @@ def check_docs(ctx: Context) -> None:
138143 """
139144 Path ("htmlcov" ).mkdir (parents = True , exist_ok = True )
140145 Path ("htmlcov/index.html" ).touch (exist_ok = True )
141- ctx .run (mkdocs .build (strict = True , config_file = mkdocs_config ()), title = pyprefix ("Building documentation" ))
146+ config = mkdocs_config ()
147+ ctx .run (
148+ mkdocs .build (strict = True , config_file = config , verbose = True ),
149+ title = pyprefix ("Building documentation" ),
150+ command = f"mkdocs build -vsf { config } " ,
151+ )
142152
143153
144154@duty
@@ -152,6 +162,7 @@ def check_types(ctx: Context) -> None:
152162 ctx .run (
153163 mypy .run (* PY_SRC_LIST , config_file = "config/mypy.ini" ),
154164 title = pyprefix ("Type-checking" ),
165+ command = f"mypy --config-file config/mypy.ini { PY_SRC } " ,
155166 )
156167
157168
@@ -166,8 +177,9 @@ def check_api(ctx: Context) -> None:
166177
167178 griffe_check = lazy (g_check , name = "griffe.check" )
168179 ctx .run (
169- griffe_check ("mkdocstrings_handlers" , search_paths = ["src" ]),
180+ griffe_check ("mkdocstrings_handlers" , search_paths = ["src" ], color = True ),
170181 title = "Checking for API breaking changes" ,
182+ command = "griffe check -ssrc mkdocstrings_handlers" ,
171183 nofail = True ,
172184 )
173185
@@ -301,4 +313,5 @@ def test(ctx: Context, match: str = "") -> None:
301313 ctx .run (
302314 pytest .run ("-n" , "auto" , "tests" , config_file = "config/pytest.ini" , select = match , color = "yes" ),
303315 title = pyprefix ("Running tests" ),
316+ command = f"pytest -c config/pytest.ini -n auto -k{ match !r} --color=yes tests" ,
304317 )
0 commit comments