From 462dc82d81376ec013ce574602d8e29d817ecb74 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Mon, 5 Jan 2026 23:22:30 +0800 Subject: [PATCH] test: upgrade min pytest to 9 and use native toml configuration --- pyproject.toml | 6 +++--- uv.lock | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e46372abc..55b4fb031 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,7 +100,7 @@ dev = [ base = ["poethepoet>=0.34.0"] test = [ - "pytest>=7.2", + "pytest>=9", "pytest-cov>=4", "pytest-mock>=3.10", "pytest-regressions>=2.4.0", @@ -177,8 +177,8 @@ omit = [ ] -[tool.pytest.ini_options] -addopts = "--strict-markers" +[tool.pytest] +addopts = ["--strict-markers"] testpaths = ["tests/"] filterwarnings = [ # get_smart_tag_range is deprecated and will be removed in v5 diff --git a/uv.lock b/uv.lock index d23b81214..b2189224e 100644 --- a/uv.lock +++ b/uv.lock @@ -296,7 +296,7 @@ dev = [ { name = "mypy", specifier = ">=1.16.0" }, { name = "poethepoet", specifier = ">=0.34.0" }, { name = "pre-commit", specifier = ">=3.2.0" }, - { name = "pytest", specifier = ">=7.2" }, + { name = "pytest", specifier = ">=9" }, { name = "pytest-cov", specifier = ">=4" }, { name = "pytest-freezer", specifier = ">=0.4.6" }, { name = "pytest-gitconfig", specifier = ">=0.9.0" }, @@ -329,7 +329,7 @@ linters = [ ] script = [{ name = "rich", specifier = ">=13.7.1" }] test = [ - { name = "pytest", specifier = ">=7.2" }, + { name = "pytest", specifier = ">=9" }, { name = "pytest-cov", specifier = ">=4" }, { name = "pytest-freezer", specifier = ">=0.4.6" }, { name = "pytest-gitconfig", specifier = ">=0.9.0" },