Skip to content

Commit c539e8f

Browse files
committed
Move pytest configuration to pyproject.toml
1 parent fcd4ab3 commit c539e8f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ build-backend = "setuptools.build_meta"
99
[tool.setuptools_scm]
1010
write_to = "pytest_django/_version.py"
1111

12+
[tool.pytest.ini_options]
13+
addopts = [
14+
# Error on using unregistered marker.
15+
"--strict-markers",
16+
# Show extra test summary info for everything.
17+
"-ra",
18+
]
19+
DJANGO_SETTINGS_MODULE = "pytest_django_test.settings_sqlite_file"
20+
testpaths = ["tests"]
21+
1222
[tool.mypy]
1323
strict = true
1424
disallow_incomplete_defs = false

setup.cfg

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ testing =
5353
[options.package_data]
5454
pytest_django = py.typed
5555

56-
[tool:pytest]
57-
# --strict-markers: error on using unregistered marker.
58-
# -ra: show extra test summary info for everything.
59-
addopts = --strict-markers -ra
60-
DJANGO_SETTINGS_MODULE = pytest_django_test.settings_sqlite_file
61-
testpaths = tests
62-
6356
[flake8]
6457
# W503 line break before binary operator
6558
ignore = W503

0 commit comments

Comments
 (0)