Skip to content

Commit fc32f93

Browse files
FIX: don't use custom rangeslider anymore (#294)
* update: pre-commit * FIX: no longer use custom RangeSlider * BUILD: update minimum mpl version - for numpy2 compat * ruff stuff * DOC: update sphinx-gallery ignore pattern * MNT: update pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * LINT: fix ruff stuff --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ce1195d commit fc32f93

26 files changed

+62
-371
lines changed

.github/workflows/mpl-master-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
test-3x:
13-
name: Matplotlib master
13+
name: Matplotlib nightly
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version: ["3.10.x", "3.11.x"]
19-
matplotlib-version: ["3.6", "3.7"]
19+
matplotlib-version: ["3.7", "3.8"]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ ci:
22
autoupdate_schedule: "quarterly"
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.6.0
66
hooks:
77
- id: check-docstring-first
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010

1111
- repo: https://github.com/psf/black
12-
rev: 23.3.0
12+
rev: 24.8.0
1313
hooks:
1414
- id: black
1515

1616
- repo: https://github.com/pycqa/isort
17-
rev: 5.12.0
17+
rev: 5.13.2
1818
hooks:
1919
- id: isort
2020

2121
- repo: https://github.com/nbQA-dev/nbQA
22-
rev: 1.7.0
22+
rev: 1.8.7
2323
hooks:
2424
- id: nbqa-black
2525
- id: nbqa-isort
2626

2727
- repo: https://github.com/kynan/nbstripout
28-
rev: 0.6.1
28+
rev: 0.7.1
2929
hooks:
3030
- id: nbstripout
3131

32-
- repo: https://github.com/charliermarsh/ruff-pre-commit
33-
rev: v0.0.256
32+
- repo: https://github.com/astral-sh/ruff-pre-commit
33+
rev: v0.6.4
3434
hooks:
3535
- id: ruff
36-
args: [--fix]
36+
args: [--fix, --exit-non-zero-on-fix]

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"examples_dirs": "examples/gallery", # path to your example scripts
8787
"gallery_dirs": "gallery", # path to where to save gallery generated output
8888
"filename_pattern": "/.*",
89-
"ignore_pattern": "/_.*", # https://www.debuggex.com/
89+
"ignore_pattern": r"_.*", # https://www.debuggex.com/
9090
"image_scrapers": (matplotlib_scraper),
9191
}
9292

@@ -254,4 +254,4 @@ def linkcode_resolve(domain, info):
254254

255255
fn = os.path.relpath(fn, start=os.path.dirname(mpl_inter.__file__))
256256

257-
return f"https://github.com/mpl-extensions/mpl-interactions/blob/main/mpl_interactions/{fn}{linespec}" # noqa: E501
257+
return f"https://github.com/mpl-extensions/mpl-interactions/blob/main/mpl_interactions/{fn}{linespec}"

docs/examples/context.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "9bdc7777-5241-4944-a12b-46f05c894dbe",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"# Contextmanager for Controls object\n",
@@ -14,7 +14,7 @@
1414
{
1515
"cell_type": "code",
1616
"execution_count": null,
17-
"id": "4c34e1ff-3ef3-4090-a2bd-7dcb3701e58b",
17+
"id": "1",
1818
"metadata": {
1919
"tags": []
2020
},
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"cell_type": "markdown",
28-
"id": "28ae4a71-a451-4846-be37-161a42d4a18e",
28+
"id": "2",
2929
"metadata": {},
3030
"source": [
3131
"## Using all params\n",
@@ -63,7 +63,7 @@
6363
{
6464
"cell_type": "code",
6565
"execution_count": null,
66-
"id": "852d736e-2839-4b22-9bd5-1e7b4e35a1d9",
66+
"id": "3",
6767
"metadata": {
6868
"tags": []
6969
},

docs/examples/devlop/devlop-base.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"outputs": [],
1010
"source": [
1111
"%matplotlib ipympl\n",
12-
"import ipywidgets as widgets\n",
1312
"import matplotlib.pyplot as plt\n",
1413
"import numpy as np\n",
1514
"\n",
@@ -27,8 +26,6 @@
2726
},
2827
"outputs": [],
2928
"source": [
30-
"import matplotlib.pyplot as plt\n",
31-
"import numpy as np\n",
3229
"import xarray as xr\n",
3330
"\n",
3431
"from mpl_interactions import hyperslicer\n",

docs/examples/devlop/devlop-controller.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@
138138
" also allows [None] to grab None of the current params\n",
139139
" to imply that we only want tau from the existing set of commands\n",
140140
" \"\"\"\n",
141-
"\n",
142141
" # make sure keys is a list\n",
143142
" # bc in gogogo_controls it may get added to another list\n",
144143
" if isinstance(key, str):\n",

docs/examples/devlop/devlop-imshow.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"outputs": [],
88
"source": [
99
"%matplotlib ipympl\n",
10-
"import ipywidgets as widgets\n",
1110
"import matplotlib.pyplot as plt\n",
1211
"import numpy as np\n",
1312
"\n",
@@ -22,7 +21,6 @@
2221
"metadata": {},
2322
"outputs": [],
2423
"source": [
25-
"import numpy as np\n",
2624
"\n",
2725
"parameter1 = np.linspace(-5, 5)\n",
2826
"parameter2 = np.linspace(-5, 5, 25)\n",

docs/examples/devlop/devlop-scatter.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@
137137
"source": [
138138
"import matplotlib.pyplot as plt\n",
139139
"import numpy as np\n",
140-
"from IPython.display import display\n",
141140
"from ipywidgets import widgets\n",
142141
"\n",
143142
"x = np.arange(10)\n",

docs/examples/gallery/heatmap_slicer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
=============
55
66
"""
7+
78
import matplotlib.pyplot as plt
89
import numpy as np
910

0 commit comments

Comments
 (0)