Skip to content
Merged
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 @@ -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.*]
Expand Down Expand Up @@ -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
Expand All @@ -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++]
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/boost_histogram/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading