Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent c500f36 commit af405ef
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/_gen_images.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
garbo
"""

from mpl_playback.record import record_file

# record_file("dynamic.py", "fig")
Expand Down
1 change: 1 addition & 0 deletions examples/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
so the ``mpl_playback`` sphinx-gallery scraper will be used to generate a gif
to embed in the gallery. Contrast this with :doc:`/gallery/static`
"""

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.widgets import Button, Slider
Expand Down
1 change: 1 addition & 0 deletions examples/multifig.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
``record_file("multifig.py", ["slider_fig", "fig"])``
"""

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.widgets import Slider
Expand Down
1 change: 1 addition & 0 deletions examples/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
does not have an associated playback file, so the scraper falls back to
the sphinx-gallery matplotlib scraper.
"""

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.widgets import Button, Slider
Expand Down
2 changes: 1 addition & 1 deletion mpl_playback/playback.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

import json
from contextlib import contextmanager
from pathlib import Path
from typing import Literal
from unittest import mock
from contextlib import contextmanager

import matplotlib
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions mpl_playback/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
file heavily based on/taken from the sphinx-gallery version
https://github.com/sphinx-gallery/sphinx-gallery/blob/ecd399e2e60557875d9312a6f5f8dbe4d0dd7a0e/sphinx_gallery/scrapers.py
"""

from pathlib import Path
from warnings import filterwarnings

Expand Down
8 changes: 3 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/ianhi/mpl-playback
author = Ian Hunt-Isaak
author_email = [email protected]
license = BSD-3-Clause
license_file = LICENSE/LICENSE
license_files = LICENSE/LICENSE
classifiers =
Framework :: Matplotlib
Intended Audience :: Developers
Expand All @@ -17,8 +17,6 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
download_url = https://github.com/ianhi/mpl-playback
keywords = matplotlib, gif
project_urls =
Expand All @@ -35,9 +33,9 @@ python_requires = >=3.8
docs =
Sphinx>=1.5
furo
myst_nb
myst-nb
sphinx-copybutton
sphinx_gallery
sphinx-gallery

[options.package_data]
* = *.pyi, py.typed
Expand Down

0 comments on commit af405ef

Please sign in to comment.