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

Skip to content

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

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

Closed
wants to merge 3 commits into from
Closed
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
- id: trailing-whitespace
exclude_types: [svg]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -42,7 +42,7 @@ repos:
files: lib/matplotlib # Only run when files in lib/matplotlib are changed.
pass_filenames: false
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 7.2.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -51,7 +51,7 @@ repos:
- flake8-force
args: ["--docstring-convention=all"]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
files: ^.*\.(py|c|cpp|h|m|md|rst|yml)$
Expand All @@ -61,7 +61,7 @@ repos:
- "--skip"
- "doc/project/credits.rst"
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
name: isort (python)
Expand All @@ -74,12 +74,12 @@ repos:
- sphinx>=1.8.1
- tomli
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
rev: v1.37.0
hooks:
- id: yamllint
args: ["--strict", "--config-file=.yamllint.yml"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
rev: 0.32.1
hooks:
# TODO: Re-enable this when https://github.com/microsoft/azure-pipelines-vscode/issues/567 is fixed.
# - id: check-azure-pipelines
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/_mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ def clamp(value: float) -> float:
return -1e9 if value < -1e9 else +1e9 if value > +1e9 else value

def hlist_out(box: Hlist) -> None:
nonlocal cur_v, cur_h, off_h, off_v
nonlocal cur_v, cur_h

cur_g = 0
cur_glue = 0.
Expand Down Expand Up @@ -1673,7 +1673,7 @@ def hlist_out(box: Hlist) -> None:
cur_h += rule_width

def vlist_out(box: Vlist) -> None:
nonlocal cur_v, cur_h, off_h, off_v
nonlocal cur_v, cur_h

cur_g = 0
cur_glue = 0.
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2122,9 +2122,9 @@ def _do_layout(gs, mosaic, unique_ids, nested):
# go through the unique keys,
for name in unique_ids:
# sort out where each axes starts/ends
indx = np.argwhere(mosaic == name)
start_row, start_col = np.min(indx, axis=0)
end_row, end_col = np.max(indx, axis=0) + 1
idx = np.argwhere(mosaic == name)
start_row, start_col = np.min(idx, axis=0)
end_row, end_col = np.max(idx, axis=0) + 1
# and construct the slice object
slc = (slice(start_row, end_row), slice(start_col, end_col))
# some light error checking
Expand Down
Loading