diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ffd009c..c7035182 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/adamchainz/blacken-docs - rev: "1.19.1" + rev: "1.20.0" hooks: - id: blacken-docs additional_dependencies: [black==25.*] @@ -36,14 +36,14 @@ repos: types_or: [yaml, markdown, html, css, scss, javascript, json] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.11" + rev: "v0.13.3" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + rev: v1.18.2 hooks: - id: mypy files: ^src @@ -65,7 +65,7 @@ repos: exclude: .pre-commit-config.yaml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v21.1.0 + rev: v21.1.2 hooks: - id: clang-format types_or: [c++] @@ -78,12 +78,12 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.3 + rev: 0.34.0 hooks: - id: check-readthedocs - id: check-github-workflows - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2025.08.29 + rev: 2025.10.03 hooks: - id: validate-pyproject diff --git a/src/boost_histogram/numpy.py b/src/boost_histogram/numpy.py index a8edb442..1a47516c 100644 --- a/src/boost_histogram/numpy.py +++ b/src/boost_histogram/numpy.py @@ -72,7 +72,7 @@ def histogramdd( if r is None: # Nextafter may affect bin edges slightly r = (np.amin(a[n]), np.amax(a[n])) # noqa: PLW2901 - if r[0] == r[1]: # type: ignore[operator] + if r[0] == r[1]: r = (r[0] - 0.5, r[1] + 0.5) # noqa: PLW2901 new_ax = _axis.Regular( typing.cast(int, b), r[0], r[1], underflow=False, overflow=False