Skip to content

[pre-commit.ci] pre-commit autoupdate #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@ ci:
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v5.0.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-merge-conflict
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
rev: v2.8.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports", "--ignore-init-module-imports", "--remove-unused-variables"]
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
rev: 6.0.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.19.0
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py37-plus]
Expand Down
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
11 changes: 4 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ 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
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
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 @@ -29,15 +26,15 @@ project_urls =
packages = find:
install_requires =
matplotlib>=3.3
python_requires = >=3.8
python_requires = >=3.9

[options.extras_require]
docs =
Sphinx>=1.5
furo
myst_nb
myst-nb
sphinx-copybutton
sphinx_gallery
sphinx-gallery

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