Skip to content

Commit

Permalink
Pytest fail when warnings are raised
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Feb 20, 2024
1 parent 32e0695 commit 0349b1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions {{cookiecutter.package_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ exclude = ["tests*"]

[tool.pytest.ini_options]
addopts = "--cov={{cookiecutter.module_name}}"
filterwarnings = [
"error",
]

[tool.black]
target-version = ['py39', 'py310', 'py311']
Expand Down

0 comments on commit 0349b1b

Please sign in to comment.