Skip to content

Commit 368ec01

Browse files
authored
Move pytest config to pyproject.toml (#74)
1 parent 8922dd8 commit 368ec01

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,13 @@ skip-string-normalization = true
1515
profile = "black"
1616
# known_first_party = "foo"
1717

18+
[tool.pytest.ini_options]
19+
# ensure we treat warnings as error
20+
filterwarnings = [
21+
# "error",
22+
"error::DeprecationWarning",
23+
"error::PendingDeprecationWarning"
24+
]
25+
1826
[tool.setuptools_scm]
1927
local_scheme = "no-local-version"

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,3 @@ commands =
6565
twine check --strict {toxinidir}/dist/*
6666
# Install the wheel
6767
sh -c "python3 -m pip install --force-reinstall {toxinidir}/dist/*.whl"
68-
69-
[pytest]
70-
filterwarnings =
71-
error::DeprecationWarning
72-
error::PendingDeprecationWarning

0 commit comments

Comments
 (0)