Skip to content

Commit 8abc070

Browse files
committed
Move pytest config to native pyproject.toml
1 parent 18feba2 commit 8abc070

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
dynamic = [ "version" ]
3838
optional-dependencies.tests = [
3939
"freezegun",
40-
"pytest",
40+
"pytest>=9",
4141
"pytest-cov",
4242
]
4343
urls."Issue tracker" = "https://github.com/python-humanize/humanize/issues"
@@ -102,11 +102,10 @@ strict = true
102102
show_error_codes = true
103103

104104
[tool.pytest]
105-
ini_options.addopts = "--color=yes"
106-
ini_options.filterwarnings = [
107-
"error",
108-
]
109-
ini_options.testpaths = [ "tests" ]
105+
minversion = "9.0"
106+
addopts = [ "--color=yes" ]
107+
testpaths = [ "tests" ]
108+
filterwarnings = [ "error" ]
110109

111110
[tool.coverage]
112111
# Regexes for lines to exclude from consideration

0 commit comments

Comments
 (0)