Skip to content

Commit

Permalink
Ignore DeprecationWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Sep 26, 2024
1 parent cc91706 commit 95e2e6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ strict = true
[tool.pytest.ini_options]
addopts = "-rXs --strict-config --strict-markers"
xfail_strict = true
filterwarnings = [
# Turn warnings that aren't filtered into exceptions
"error",
"ignore::DeprecationWarning:starlette",
"ignore: There is no current event loop:DeprecationWarning",
"ignore: 'pkgutil.get_loader' is deprecated.*:DeprecationWarning",
"ignore: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead:DeprecationWarning",
"ignore: Attribute s is deprecated and will be removed in Python 3.14; use value instead:DeprecationWarning",
]

[tool.coverage.run]
source_pkgs = ["starlette", "tests"]
Expand Down

0 comments on commit 95e2e6b

Please sign in to comment.