Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29afed6

Browse files
committed
MNT: Move sphinx_gallery_thumbnail_path to fix E402 lint errors
Moving the variables below imports ensures PEP8/Ruff compliance while maintaining Sphinx-Gallery configuration.
1 parent a8a15ba commit 29afed6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

galleries/users_explain/text/annotations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
.. contents:: Table of Contents
3232
:depth: 3
3333
"""
34-
sphinx_gallery_thumbnail_path = '_static/annotations_thumbnail.png'
3534
# %%
3635
# .. _annotations-tutorial:
3736
#
@@ -933,3 +932,5 @@ def __call__(self, x0, y0, width, height, mutation_size):
933932
# :doc:`/gallery/subplots_axes_and_figures/axes_zoom_effect` and
934933
# familiarity with :ref:`transforms_tutorial`
935934
# is recommended.
935+
936+
sphinx_gallery_thumbnail_path = '_static/annotations_thumbnail.png'

galleries/users_explain/text/mathtext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
the backslashes do not need to be escaped, Mathtext is often written using raw
1919
strings. For example:
2020
"""
21-
sphinx_gallery_thumbnail_path = '_static/mathtext_thumbnail.png'
2221

2322
import matplotlib.pyplot as plt
2423

@@ -372,3 +371,5 @@
372371
# obscure symbols in the STIX fonts), Unicode characters can also be used::
373372
#
374373
# '$\u23ce$'
374+
375+
sphinx_gallery_thumbnail_path = '_static/mathtext_thumbnail.png'

0 commit comments

Comments
 (0)