Skip to content
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

chore(deps): update pre-commit hooks #965

Merged
merged 2 commits into from
Nov 14, 2024
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.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
Loading