Skip to content

updated mpl gui warning catcher to new error message#1160

Merged
larsoner merged 2 commits intosphinx-gallery:masterfrom
story645:'mpl-gui-warning'
Aug 10, 2023
Merged

updated mpl gui warning catcher to new error message#1160
larsoner merged 2 commits intosphinx-gallery:masterfrom
story645:'mpl-gui-warning'

Conversation

@story645
Copy link
Copy Markdown
Contributor

@story645 story645 commented Aug 10, 2023

Hi folks, matplotlib/matplotlib#26472 changed the wording of the gui error message, so this PR updates the filters and docs to the new warning message wording. This is gonna be in the 3.8 release.
I wonder if there's a better way to do this though.

Copy link
Copy Markdown
Contributor

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that this will only work for newer matplotlib. The regex should support both old and new matplotlib verisons, which you can accomplish with (old|new) for example

@story645
Copy link
Copy Markdown
Contributor Author

no problem, wasn't sure how back compatibility is handled here.

@story645 story645 force-pushed the 'mpl-gui-warning' branch 2 times, most recently from a2da63b to f46a3f7 Compare August 10, 2023 17:24
Copy link
Copy Markdown
Contributor

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work now, marking for merge when green -- thanks for sticking with it @story645 !

@larsoner larsoner enabled auto-merge (squash) August 10, 2023 17:52
@story645
Copy link
Copy Markdown
Contributor Author

Is no problem, this isn't even a cranky review cycle.

@larsoner
Copy link
Copy Markdown
Contributor

Is no problem, this isn't even a cranky review cycle.

Looks like the CIs are still cranky about style 😄

sphinx_gallery/scrapers.py:45:80: E501 line too long (82 > 79 characters)
sphinx_gallery/tests/test_full.py:994:1: W293 blank line contains whitespace

auto-merge was automatically disabled August 10, 2023 18:27

Head branch was pushed to by a user without write access

@story645
Copy link
Copy Markdown
Contributor Author

I'm clearly spoiled by pre-commits

@larsoner larsoner enabled auto-merge (squash) August 10, 2023 22:40
@larsoner larsoner added the bug label Aug 10, 2023
@larsoner
Copy link
Copy Markdown
Contributor

... I opened #1162 so that hopefully next time it's easier for you @story645 !

@larsoner larsoner merged commit 9361698 into sphinx-gallery:master Aug 10, 2023
@story645 story645 deleted the 'mpl-gui-warning' branch August 10, 2023 22:50
clrpackages referenced this pull request in clearlinux-pkgs/pypi-sphinx_gallery Aug 22, 2023
… to version 0.14.0

v0.14.0
-------

**Implemented enhancements:**

-  MAINT Update backreferences docs and add tests `#1154 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1154>`__ (`lucyleeow <https://github.com/lucyleeow>`__)
-  Remove extra spaces in reported running time `#1147 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1147>`__ (`stefanv <https://github.com/stefanv>`__)

**Fixed bugs:**

-  MAINT: Fix for Sphinx 7.2 `#1176 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1176>`__ (`larsoner <https://github.com/larsoner>`__)
-  updated mpl gui warning catcher to new error message `#1160 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1160>`__ (`story645 <https://github.com/story645>`__)
-  Ensure consistent encoding for md5sum generation `#1159 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1159>`__ (`sdhiscocks <https://github.com/sdhiscocks>`__)
-  Maint: Fix ``app.builder.outdir`` as Sphinx now using pathlib `#1155 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1155>`__ (`lucyleeow <https://github.com/lucyleeow>`__)
-  Make \_LoggingTee compatible with TextIO `#1151 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1151>`__ (`o-laurent <https://github.com/o-laurent>`__)

(NEWS truncated at 15 lines)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants