Skip to content

Commit ab501e2

Browse files
chore(deps): update pre-commit hooks (#1053)
* chore(deps): update pre-commit hooks updates: - [github.com/adamchainz/blacken-docs: 1.19.1 → 1.20.0](adamchainz/blacken-docs@1.19.1...1.20.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.3](astral-sh/ruff-pre-commit@v0.12.11...v0.13.3) - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.2](pre-commit/mirrors-mypy@v1.17.1...v1.18.2) - [github.com/pre-commit/mirrors-clang-format: v21.1.0 → v21.1.2](pre-commit/mirrors-clang-format@v21.1.0...v21.1.2) - [github.com/python-jsonschema/check-jsonschema: 0.33.3 → 0.34.0](python-jsonschema/check-jsonschema@0.33.3...0.34.0) - [github.com/henryiii/validate-pyproject-schema-store: 2025.08.29 → 2025.10.03](henryiii/validate-pyproject-schema-store@2025.08.29...2025.10.03) * chore: an ignore no longer needed Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent 39df5f6 commit ab501e2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55

66
repos:
77
- repo: https://github.com/adamchainz/blacken-docs
8-
rev: "1.19.1"
8+
rev: "1.20.0"
99
hooks:
1010
- id: blacken-docs
1111
additional_dependencies: [black==25.*]
@@ -36,14 +36,14 @@ repos:
3636
types_or: [yaml, markdown, html, css, scss, javascript, json]
3737

3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: "v0.12.11"
39+
rev: "v0.13.3"
4040
hooks:
4141
- id: ruff-check
4242
args: ["--fix", "--show-fixes"]
4343
- id: ruff-format
4444

4545
- repo: https://github.com/pre-commit/mirrors-mypy
46-
rev: v1.17.1
46+
rev: v1.18.2
4747
hooks:
4848
- id: mypy
4949
files: ^src
@@ -65,7 +65,7 @@ repos:
6565
exclude: .pre-commit-config.yaml
6666

6767
- repo: https://github.com/pre-commit/mirrors-clang-format
68-
rev: v21.1.0
68+
rev: v21.1.2
6969
hooks:
7070
- id: clang-format
7171
types_or: [c++]
@@ -78,12 +78,12 @@ repos:
7878
- id: rst-inline-touching-normal
7979

8080
- repo: https://github.com/python-jsonschema/check-jsonschema
81-
rev: 0.33.3
81+
rev: 0.34.0
8282
hooks:
8383
- id: check-readthedocs
8484
- id: check-github-workflows
8585

8686
- repo: https://github.com/henryiii/validate-pyproject-schema-store
87-
rev: 2025.08.29
87+
rev: 2025.10.03
8888
hooks:
8989
- id: validate-pyproject

src/boost_histogram/numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def histogramdd(
7272
if r is None:
7373
# Nextafter may affect bin edges slightly
7474
r = (np.amin(a[n]), np.amax(a[n])) # noqa: PLW2901
75-
if r[0] == r[1]: # type: ignore[operator]
75+
if r[0] == r[1]:
7676
r = (r[0] - 0.5, r[1] + 0.5) # noqa: PLW2901
7777
new_ax = _axis.Regular(
7878
typing.cast(int, b), r[0], r[1], underflow=False, overflow=False

0 commit comments

Comments
 (0)