Skip to content

Commit

Permalink
tests: Error on warnings and ignore warnings we don’t control
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Dec 13, 2023
1 parent ca47d93 commit e01b021
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Expand Up @@ -37,7 +37,12 @@ mediafile = "^0.12.0"

[tool.pytest.ini_options]
addopts = "--cov --cov-report=term --cov-report=html"

filterwarnings = [
"error",
"ignore:.*imghdr.*:DeprecationWarning:mediafile",
"ignore:.*setlocale.*:DeprecationWarning:beets.util",
"ignore:.*pkgutil.get_loader.*:DeprecationWarning:confuse.util",
]
[tool.isort]
profile = "black"

Expand Down

0 comments on commit e01b021

Please sign in to comment.