@@ -134,7 +134,7 @@ def docs_deploy(ctx: Context) -> None:
134134 with material_insiders () as insiders :
135135 if not insiders :
136136 ctx .run (lambda : False , title = "Not deploying docs without Material for MkDocs Insiders!" )
137- ctx .run (tools .mkdocs .gh_deploy (), title = "Deploying documentation" )
137+ ctx .run (tools .mkdocs .gh_deploy (force = True ), title = "Deploying documentation" )
138138
139139
140140@duty
@@ -181,7 +181,7 @@ def release(ctx: Context, version: str = "") -> None:
181181 ctx .run ("false" , title = "A version must be provided" )
182182 ctx .run ("git add pyproject.toml CHANGELOG.md" , title = "Staging files" , pty = PTY )
183183 ctx .run (["git" , "commit" , "-m" , f"chore: Prepare release { version } " ], title = "Committing changes" , pty = PTY )
184- ctx .run (f"git tag { version } " , title = "Tagging commit" , pty = PTY )
184+ ctx .run (f"git tag -m '' -a { version } " , title = "Tagging commit" , pty = PTY )
185185 ctx .run ("git push" , title = "Pushing commits" , pty = False )
186186 ctx .run ("git push --tags" , title = "Pushing tags" , pty = False )
187187
@@ -195,18 +195,14 @@ def coverage(ctx: Context) -> None:
195195
196196
197197@duty (nofail = PY_VERSION == PY_DEV )
198- def test (ctx : Context , * cli_args : str , match : str = "" ) -> None : # noqa: PT028
199- """Run the test suite.
200-
201- Parameters:
202- match: A pytest expression to filter selected tests.
203- """
198+ def test (ctx : Context , * cli_args : str ) -> None :
199+ """Run the test suite."""
204200 os .environ ["COVERAGE_FILE" ] = f".coverage.{ PY_VERSION } "
201+ os .environ ["PYTHONWARNDEFAULTENCODING" ] = "1"
205202 ctx .run (
206203 tools .pytest (
207204 "tests" ,
208205 config_file = "config/pytest.ini" ,
209- select = match ,
210206 color = "yes" ,
211207 ).add_args ("-n" , "auto" , * cli_args ),
212208 title = pyprefix ("Running tests" ),
0 commit comments