Skip to content

Commit

Permalink
comment pytest filterwarnings config
Browse files Browse the repository at this point in the history
  • Loading branch information
avaldebe committed Mar 21, 2024
1 parent 9856ab3 commit d714b10
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,22 @@ exclude = [
minversion = "7.4"
log_cli = false
log_cli_level = "WARNING"
addopts = [
"--failed-first",
"--import-mode=importlib",
"--pythonwarnings=ignore", # comment to raise errors from warnings, see filterwarnings
]
addopts = ["--failed-first", "--import-mode=importlib"]
xfail_strict = true
testpaths = ["tests"]
filterwarnings = [
# all warnings are errors
"error",
"ignore::pytest.PytestUnraisableExceptionWarning",
# except deprecation and future warnings ouside this packege
'ignore::PendingDeprecationWarning:^(?!pyaerocom|tests).*:',
'ignore::DeprecationWarning:^(?!pyaerocom|tests).*:',
'ignore::FutureWarning:^(?!pyaerocom|tests).*:',
# and not on this list
"ignore:.*please install Basemap:UserWarning:geonum.*:",
"ignore:Using DEFAULT_SPHERICAL_EARTH_RADIUS:UserWarning:iris.*:",
]
## uncomment to raise errors from warnings
#filterwarnings = [
# # all warnings are errors
# "error",
# "ignore::pytest.PytestUnraisableExceptionWarning",
# # except deprecation and future warnings ouside this packege
# 'ignore::PendingDeprecationWarning:^(?!pyaerocom|tests).*:',
# 'ignore::DeprecationWarning:^(?!pyaerocom|tests).*:',
# 'ignore::FutureWarning:^(?!pyaerocom|tests).*:',
# # and not on this list
# "ignore:.*please install Basemap:UserWarning:geonum.*:",
# "ignore:Using DEFAULT_SPHERICAL_EARTH_RADIUS:UserWarning:iris.*:",
#]

[tool.coverage.run]
source = ["pyaerocom"]
Expand Down

0 comments on commit d714b10

Please sign in to comment.