From 52c8993a20f098bd8d4f163a3d7aad931b43a61a Mon Sep 17 00:00:00 2001 From: Evan Downing <2077950+evandowning@users.noreply.github.com> Date: Thu, 25 Sep 2025 10:46:42 -0400 Subject: [PATCH] Add default pytest timeout and increase verbosity for debugging. --- {{cookiecutter.project_slug}}/Makefile | 2 +- {{cookiecutter.project_slug}}/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/Makefile b/{{cookiecutter.project_slug}}/Makefile index fae43d4..7c5cebd 100644 --- a/{{cookiecutter.project_slug}}/Makefile +++ b/{{cookiecutter.project_slug}}/Makefile @@ -44,7 +44,7 @@ format: .PHONY: test test: - uv run pytest --cov=$(PY_IMPORT) $(T) $(TEST_ARGS) + uv run pytest -svv --timeout=300 --cov=$(PY_IMPORT) $(T) $(TEST_ARGS) uv run coverage report -m $(COV_ARGS) .PHONY: doc diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 868dacd..df8d65a 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -32,7 +32,7 @@ doc = [ "pdoc" {%- endif -%} ] -test = ["pytest", "pytest-cov", "pretend", "coverage[toml]"] +test = ["pytest", "pytest-cov", "pytest-timeout", "pretend", "coverage[toml]"] lint = [ # NOTE: ruff is under active development, so we pin conservatively here # and let Dependabot periodically perform this update.