Skip to content

Commit f101e49

Browse files
authored
Merge pull request #29911 from dstansby/pre-commit-update
Bump pre-commit versions
2 parents 349aa96 + 0c31249 commit f101e49

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
- id: trailing-whitespace
2929
exclude_types: [svg]
3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.14.1
31+
rev: v1.15.0
3232
hooks:
3333
- id: mypy
3434
additional_dependencies:
@@ -44,13 +44,13 @@ repos:
4444

4545
- repo: https://github.com/astral-sh/ruff-pre-commit
4646
# Ruff version.
47-
rev: v0.11.0
47+
rev: v0.11.5
4848
hooks:
4949
# Run the linter.
5050
- id: ruff
5151
args: [--fix, --show-fixes]
5252
- repo: https://github.com/codespell-project/codespell
53-
rev: v2.3.0
53+
rev: v2.4.1
5454
hooks:
5555
- id: codespell
5656
files: ^.*\.(py|c|cpp|h|m|md|rst|yml)$
@@ -60,7 +60,7 @@ repos:
6060
- "--skip"
6161
- "doc/project/credits.rst"
6262
- repo: https://github.com/pycqa/isort
63-
rev: 5.13.2
63+
rev: 6.0.1
6464
hooks:
6565
- id: isort
6666
name: isort (python)
@@ -73,12 +73,12 @@ repos:
7373
- sphinx>=1.8.1
7474
- tomli
7575
- repo: https://github.com/adrienverge/yamllint
76-
rev: v1.35.1
76+
rev: v1.37.0
7777
hooks:
7878
- id: yamllint
7979
args: ["--strict", "--config-file=.yamllint.yml"]
8080
- repo: https://github.com/python-jsonschema/check-jsonschema
81-
rev: 0.30.0
81+
rev: 0.33.0
8282
hooks:
8383
# TODO: Re-enable this when https://github.com/microsoft/azure-pipelines-vscode/issues/567 is fixed.
8484
# - id: check-azure-pipelines

ci/codespell-ignore-words.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
aas
2+
ABD
23
axises
34
coo
45
curvelinear

lib/matplotlib/figure.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2122,9 +2122,9 @@ def _do_layout(gs, mosaic, unique_ids, nested):
21222122
# go through the unique keys,
21232123
for name in unique_ids:
21242124
# sort out where each axes starts/ends
2125-
indx = np.argwhere(mosaic == name)
2126-
start_row, start_col = np.min(indx, axis=0)
2127-
end_row, end_col = np.max(indx, axis=0) + 1
2125+
index = np.argwhere(mosaic == name)
2126+
start_row, start_col = np.min(index, axis=0)
2127+
end_row, end_col = np.max(index, axis=0) + 1
21282128
# and construct the slice object
21292129
slc = (slice(start_row, end_row), slice(start_col, end_col))
21302130
# some light error checking

0 commit comments

Comments
 (0)