Skip to content

Commit 2e6290e

Browse files
Modernize pytest configuration
1 parent 37797a2 commit 2e6290e

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dev = [
5656
{ include-group = "test" },
5757
{ include-group = "docs" },
5858
]
59-
test = ["pytest", "pytest-cov"]
59+
test = ["pytest > 9", "pytest-cov"]
6060
docs = ["ipykernel", "ipympl", "seaborn"]
6161

6262
[project.urls]
@@ -83,19 +83,13 @@ tag_regex = '^(?P<version>v?\d+\.\d+\.\d+)$'
8383
# https://github.com/ofek/hatch-vcs/discussions/12
8484
local_scheme = "no-local-version"
8585

86-
[tool.pytest.ini_options]
87-
addopts = [
88-
"-ra",
89-
"--doctest-glob=README.md",
90-
"--import-mode=importlib",
91-
"--strict-config",
92-
"--strict-markers",
93-
]
86+
[tool.pytest]
87+
addopts = ["-ra", "--doctest-glob=README.md", "--showlocals"]
9488
filterwarnings = ["error"]
95-
log_cli_level = "DEBUG"
96-
minversion = "7"
89+
log_level = "DEBUG"
90+
minversion = "9"
9791
testpaths = ["README.md", "tests"]
98-
xfail_strict = true
92+
strict = true
9993

10094
[tool.ruff.lint]
10195
extend-select = ["ALL"]

0 commit comments

Comments
 (0)