Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#965)
Browse files Browse the repository at this point in the history
* chore(deps): update pre-commit hooks

updates:
- [github.com/adamchainz/blacken-docs: 1.18.0 → 1.19.1](adamchainz/blacken-docs@1.18.0...1.19.1)
- [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.2](astral-sh/ruff-pre-commit@v0.6.9...v0.7.2)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](pre-commit/mirrors-mypy@v1.11.2...v1.13.0)
- [github.com/pre-commit/mirrors-clang-format: v19.1.1 → v19.1.3](pre-commit/mirrors-clang-format@v19.1.1...v19.1.3)
- [github.com/python-jsonschema/check-jsonschema: 0.29.3 → 0.29.4](python-jsonschema/check-jsonschema@0.29.3...0.29.4)
- [github.com/henryiii/validate-pyproject-schema-store: 2024.10.07 → 2024.10.21](henryiii/validate-pyproject-schema-store@2024.10.07...2024.10.21)

* Update numpy.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and henryiii authored Nov 14, 2024
1 parent 414ce3b commit 08f26b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
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.18.0"
rev: "1.19.1"
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]
Expand Down Expand Up @@ -37,7 +37,7 @@ repos:
types_or: [yaml, markdown, html, css, scss, javascript, json]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.9"
rev: "v0.7.2"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -46,7 +46,7 @@ repos:
types_or: [python, pyi, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.0
hooks:
- id: mypy
files: ^src
Expand All @@ -68,7 +68,7 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.1
rev: v19.1.3
hooks:
- id: clang-format
types_or: [c++]
Expand All @@ -81,12 +81,12 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.3
rev: 0.29.4
hooks:
- id: check-readthedocs
- id: check-github-workflows

- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2024.10.07
rev: 2024.10.21
hooks:
- id: validate-pyproject
3 changes: 1 addition & 2 deletions src/boost_histogram/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def histogramdd(
storage: _storage.Storage = _storage.Double(), # noqa: B008
threads: int | None = None,
) -> Any:
# TODO: Might be a bug in MyPy? This should type
cls: type[_hist.Histogram] = _hist.Histogram if histogram is None else histogram # type: ignore[assignment]
cls: type[_hist.Histogram] = _hist.Histogram if histogram is None else histogram

if normed is not None:
raise KeyError(
Expand Down

0 comments on commit 08f26b9

Please sign in to comment.