@@ -103,6 +103,7 @@ def check_quality(ctx: Context) -> None:
103103 ctx .run (
104104 ruff .check (* PY_SRC_LIST , config = "config/ruff.toml" ),
105105 title = pyprefix ("Checking code quality" ),
106+ command = f"ruff check --config config/ruff.toml { PY_SRC } " ,
106107 )
107108
108109
@@ -120,7 +121,11 @@ def check_dependencies(ctx: Context) -> None:
120121 allow_overrides = False ,
121122 )
122123
123- ctx .run (safety .check (requirements ), title = "Checking dependencies" )
124+ ctx .run (
125+ safety .check (requirements ),
126+ title = "Checking dependencies" ,
127+ command = "pdm export -f requirements --without-hashes | safety check --stdin" ,
128+ )
124129
125130
126131@duty
@@ -132,7 +137,12 @@ def check_docs(ctx: Context) -> None:
132137 """
133138 Path ("htmlcov" ).mkdir (parents = True , exist_ok = True )
134139 Path ("htmlcov/index.html" ).touch (exist_ok = True )
135- ctx .run (mkdocs .build (strict = True , config_file = mkdocs_config ()), title = pyprefix ("Building documentation" ))
140+ config = mkdocs_config ()
141+ ctx .run (
142+ mkdocs .build (strict = True , config_file = config , verbose = True ),
143+ title = pyprefix ("Building documentation" ),
144+ command = f"mkdocs build -vsf { config } " ,
145+ )
136146
137147
138148@duty
@@ -145,6 +155,7 @@ def check_types(ctx: Context) -> None:
145155 ctx .run (
146156 mypy .run (* PY_SRC_LIST , config_file = "config/mypy.ini" ),
147157 title = pyprefix ("Type-checking" ),
158+ command = f"mypy --config-file config/mypy.ini { PY_SRC } " ,
148159 )
149160
150161
@@ -159,8 +170,9 @@ def check_api(ctx: Context) -> None:
159170
160171 griffe_check = lazy (g_check , name = "griffe.check" )
161172 ctx .run (
162- griffe_check ("griffe" , search_paths = ["src" ]),
173+ griffe_check ("griffe" , search_paths = ["src" ], color = True ),
163174 title = "Checking for API breaking changes" ,
175+ command = "griffe check -ssrc griffe" ,
164176 nofail = True ,
165177 )
166178
@@ -276,6 +288,7 @@ def test(ctx: Context, match: str = "") -> None:
276288 ctx .run (
277289 pytest .run ("-n" , "auto" , "tests" , config_file = "config/pytest.ini" , select = match , color = "yes" , verbosity = 10 ),
278290 title = pyprefix ("Running tests" ),
291+ command = f"pytest -c config/pytest.ini -n auto -k{ match !r} --color=yes tests" ,
279292 )
280293
281294
0 commit comments