Skip to content

Commit

Permalink
Move pytest config to pyproject.toml (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Dec 7, 2021
1 parent 8922dd8 commit 368ec01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@ skip-string-normalization = true
profile = "black"
# known_first_party = "foo"

[tool.pytest.ini_options]
# ensure we treat warnings as error
filterwarnings = [
# "error",
"error::DeprecationWarning",
"error::PendingDeprecationWarning"
]

[tool.setuptools_scm]
local_scheme = "no-local-version"
5 changes: 0 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,3 @@ commands =
twine check --strict {toxinidir}/dist/*
# Install the wheel
sh -c "python3 -m pip install --force-reinstall {toxinidir}/dist/*.whl"

[pytest]
filterwarnings =
error::DeprecationWarning
error::PendingDeprecationWarning

0 comments on commit 368ec01

Please sign in to comment.