Skip to content

Commit

Permalink
ENH: Consider warnings as errors when running pytest
Browse files Browse the repository at this point in the history
Consider warnings as errors when running `pytest`: add the
`strict-warnings` flag to `pytest` to consider warnings as errors.
  • Loading branch information
jhlegarreta committed Jan 9, 2025
1 parent 1359d51 commit 11b18f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ version-file = "mriqc/_version.py"
#

[tool.pytest.ini_options]
addopts = ["-svx", "--doctest-modules", "-ra", "--strict-config", "--strict-markers"]
addopts = ["-svx", "--doctest-modules", "-ra", "--strict-config", "--strict-markers", "--strict-warnings"]
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
env = "PYTHONHASHSEED=0"
filterwarnings = ["ignore::DeprecationWarning"]
Expand Down

0 comments on commit 11b18f1

Please sign in to comment.