Skip to content

Commit

Permalink
CI: treat warnings as errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Oct 19, 2023
1 parent 364e390 commit a55fa9e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ norecursedirs =
build

python_files = test_*.py
addopts = --doctest-glob="*.rst" --xdoctest --mpl --mpl-baseline-path=fastf1/tests/mpl-baseline --mpl-results-path=mpl-results
addopts =
--doctest-glob="*.rst"
--xdoctest
--mpl
--mpl-baseline-path=fastf1/tests/mpl-baseline
--mpl-results-path=mpl-results


filterwarnings =
# turn all warnings into errors
# (the last matching action is performed, therefore error needs to be first
error
#
# fastf1 internal, only relevant for users
# (10/2022)
ignore:.*to_datetime.*will return NaT instead of raising an exception.*:FutureWarning
# (10/2023)
ignore:.*`utils\.delta_time` is considered deprecated.*:FutureWarning
#
# external, verified as not relevant
# (10/2022)
ignore:.*df.iloc.*will attempt to set the values inplace.*:FutureWarning
Expand Down

0 comments on commit a55fa9e

Please sign in to comment.