Skip to content

Commit fb1469a

Browse files
authored
Pytest fail when warnings are raised (#111)
1 parent ef887fe commit fb1469a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

{{cookiecutter.package_name}}/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ exclude = ["tests*"]
9292

9393
[tool.pytest.ini_options]
9494
addopts = "--cov={{cookiecutter.module_name}}"
95+
filterwarnings = [
96+
"error",
97+
]
9598

9699
[tool.black]
97100
target-version = ['py39', 'py310', 'py311']

0 commit comments

Comments
 (0)