Skip to content

Commit

Permalink
Escalate test suite warnings to errors
Browse files Browse the repository at this point in the history
This helps ensure that warnings that CPython ignores by default
-- ResourceWarning -- or that warn of pending changes
-- DeprecationWarning -- cause test suite failures in CI
and can be addressed.

There are currently no warnings to address.
  • Loading branch information
kurtmckee authored and LudovicRousseau committed Oct 6, 2024
1 parent b45f76f commit b6324cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ project-name = "PySCard"
project-url = "https://github.com/LudovicRousseau/pyscard"
html-output = "build/docs/apidocs"
warnings-as-errors = true


# pytest
# ------

[tool.pytest.ini_options]
addopts = "--color=yes"
filterwarnings = [
"error",
]

0 comments on commit b6324cc

Please sign in to comment.