Skip to content

Commit

Permalink
Merge pull request #7373 from meeseeksmachine/auto-backport-of-pr-737…
Browse files Browse the repository at this point in the history
…2-on-5.1

Backport PR #7372 on branch 5.1 (remove filter on warnings for release docs)
  • Loading branch information
nabobalis committed Jan 10, 2024
2 parents da346a0 + 1cc46c1 commit 9ee1592
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,12 @@
sunpy_version = Version(__version__)
is_release = not(sunpy_version.is_prerelease or sunpy_version.is_devrelease)

# We want to ignore all warnings in a release version.
if is_release:
warnings.simplefilter("ignore")
# We want to make sure all the following warnings fail the build
warnings.filterwarnings("error", category=SunpyDeprecationWarning)
warnings.filterwarnings("ignore", message='The sunpy.database module is no longer actively maintained', category=SunpyDeprecationWarning)
warnings.filterwarnings("error", category=SunpyPendingDeprecationWarning)
warnings.filterwarnings("error", category=MatplotlibDeprecationWarning)
warnings.filterwarnings("error", category=AstropyDeprecationWarning)
warnings.filterwarnings("ignore", message="The `sunpy.io.file_tools` module is deprecated",category=SunpyDeprecationWarning)

# -- SunPy Sample Data and Config ----------------------------------------------
# We set the logger to debug so that we can see any sample data download errors
Expand Down

0 comments on commit 9ee1592

Please sign in to comment.