Skip to content

Commit 951a9fe

Browse files
committed
Move pytest configuration to native toml
1 parent 3e96db7 commit 951a9fe

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

newsfragments/1218.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update pytest configuration to toml-native

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ include = ["pytest_postgresql*"]
5656
exclude = ["tests*"]
5757
namespaces = false
5858

59-
[tool.pytest.ini_options]
60-
xfail_strict=true
61-
addopts = "--showlocals --verbose --cov"
62-
testpaths = "tests"
59+
[tool.pytest]
60+
strict_xfail=true
61+
addopts = ["--showlocals", "--verbose", "--cov"]
62+
testpaths = ["tests"]
6363
pytester_example_dir = "tests/examples"
64-
norecursedirs = "examples"
64+
norecursedirs = ["examples"]
6565

6666
[tool.ruff]
6767
line-length = 120

0 commit comments

Comments
 (0)