Skip to content

Commit 0aabe65

Browse files
committed
Disable treating warnings as errors in pytest
Ideally we should treat warnings as errors, but we have too many warnings coming for external dependencies that are hard to address here. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 6d82d88 commit 0aabe65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ disable = [
164164
]
165165

166166
[tool.pytest.ini_options]
167-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
167+
# Ideally we should treat warnings as errors, but we have too many warnings
168+
# coming for external dependencies that are hard to address here, once this is
169+
# fixed, we can add the following options:
170+
# -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning
171+
addopts = "-W=all -vv"
168172
testpaths = ["tests", "src"]
169173
asyncio_mode = "auto"
170174
asyncio_default_fixture_loop_scope = "function"

0 commit comments

Comments
 (0)