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 #967

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ repos:
additional_dependencies: [pyyaml]

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.3.3"
rev: "v3.4.1"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
rev: "v0.8.1"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -68,7 +68,7 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.3
rev: v19.1.4
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.4
rev: 0.30.0
hooks:
- id: check-readthedocs
- id: check-github-workflows

- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2024.10.21
rev: 2024.11.25
hooks:
- id: validate-pyproject
10 changes: 5 additions & 5 deletions src/boost_histogram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
"Histogram",
"IndexingExpr",
"Kind",
"axis",
"storage",
"__version__",
"accumulators",
"numpy",
"axis",
"loc",
"numpy",
"overflow",
"rebin",
"storage",
"sum",
"underflow",
"overflow",
"__version__",
)


Expand Down
2 changes: 1 addition & 1 deletion src/boost_histogram/_internal/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _opts(**kwargs: bool) -> set[str]:
# Contains common methods and properties to all axes
@set_module("boost_histogram.axis")
class Axis:
__slots__ = ("_ax", "__dict__")
__slots__ = ("__dict__", "_ax")
_family: object

def __init_subclass__(cls, *, family: object) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/boost_histogram/_internal/hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ def _expand_ellipsis(indexes: Iterable[Any], rank: int) -> list[Any]:
class Histogram:
# Note this is a __slots__ __dict__ class!
__slots__ = (
"__dict__",
"_hist",
"axes",
"__dict__",
)
# .metadata and ._variance_known are part of the dict

Expand Down
6 changes: 3 additions & 3 deletions src/boost_histogram/_internal/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@


__all__ = (
"CppHistogram",
"AxisLike",
"ArrayLike",
"Ufunc",
"AxisLike",
"CppHistogram",
"StdIndex",
"StrIndex",
"Ufunc",
)


Expand Down
2 changes: 1 addition & 1 deletion src/boost_histogram/accumulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
)
from ._internal.typing import Accumulator

__all__ = ("Sum", "Mean", "WeightedSum", "WeightedMean", "Accumulator")
__all__ = ("Accumulator", "Mean", "Sum", "WeightedMean", "WeightedSum")

for cls in (Sum, Mean, WeightedSum, WeightedMean):
cls.__module__ = "boost_histogram.accumulators"
Expand Down
14 changes: 7 additions & 7 deletions src/boost_histogram/axis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
from . import transform

__all__ = (
"Regular",
"Variable",
"Integer",
"ArrayTuple",
"AxesTuple",
"Axis",
"Boolean",
"IntCategory",
"Integer",
"Regular",
"StrCategory",
"Boolean",
"Axis",
"Traits",
"Variable",
"transform",
"ArrayTuple",
"AxesTuple",
)
2 changes: 1 addition & 1 deletion src/boost_histogram/axis/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_internal_conversion,
)

__all__ = ("AxisTransform", "Pow", "Function", "sqrt", "log")
__all__ = ("AxisTransform", "Function", "Pow", "log", "sqrt")

sqrt = Function("_sqrt_fn", "_sq_fn", convert=_internal_conversion, name="sqrt")
log = Function("_log_fn", "_exp_fn", convert=_internal_conversion, name="log")
8 changes: 4 additions & 4 deletions src/boost_histogram/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
)

__all__ = (
"Storage",
"Int64",
"Double",
"AtomicInt64",
"Double",
"Int64",
"Mean",
"Storage",
"Unlimited",
"Weight",
"Mean",
"WeightedMean",
)
2 changes: 1 addition & 1 deletion src/boost_histogram/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from ._internal.typing import AxisLike

__all__ = ("Slicer", "Locator", "at", "loc", "overflow", "underflow", "rebin", "sum")
__all__ = ("Locator", "Slicer", "at", "loc", "overflow", "rebin", "sum", "underflow")


class Slicer:
Expand Down
Loading