Skip to content

Commit 7345d0f

Browse files
Fail tests on warnings
1 parent 28db941 commit 7345d0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ description = "run unit tests"
7676
dependency_groups = [ "tests" ]
7777
commands = [ [ "pytest", { replace = "posargs", default = [ "tests" ], extend = true } ] ]
7878

79+
[tool.pytest.ini_options]
80+
filterwarnings = [
81+
"error",
82+
]
83+
7984
[build-system]
8085
requires = ["hatchling"]
8186
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)