From 8d3149e2397487a521de0a0935217405f70b6835 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:52:37 -0400 Subject: [PATCH] chore: update pre-commit hooks (#124) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/psf/black-pre-commit-mirror: 23.12.1 → 24.2.0](https://github.com/psf/black-pre-commit-mirror/compare/23.12.1...24.2.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.13 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.13...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.28.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.3...0.28.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 8 ++++---- src/uhi/typing/plottable.py | 9 +++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ded54ff..412b81a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.12.1 + rev: 24.2.0 hooks: - id: black @@ -22,13 +22,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.13" + rev: "v0.3.2" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy files: ^(src|tests) @@ -67,7 +67,7 @@ repos: types_or: [json] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.3 + rev: 0.28.0 hooks: - id: check-readthedocs - id: check-github-workflows diff --git a/src/uhi/typing/plottable.py b/src/uhi/typing/plottable.py index ce463fa..967f570 100644 --- a/src/uhi/typing/plottable.py +++ b/src/uhi/typing/plottable.py @@ -70,8 +70,7 @@ class PlottableAxisGeneric(Protocol[T_co]): # available on all histograms and not part of the Protocol. @property - def traits(self) -> PlottableTraits: - ... + def traits(self) -> PlottableTraits: ... def __getitem__(self, index: int) -> T_co: """ @@ -105,12 +104,10 @@ def __iter__(self) -> Iterator[T_co]: @runtime_checkable class PlottableHistogram(Protocol): @property - def axes(self) -> Sequence[PlottableAxis]: - ... + def axes(self) -> Sequence[PlottableAxis]: ... @property - def kind(self) -> Kind: - ... + def kind(self) -> Kind: ... # All methods can have a flow=False argument - not part of this Protocol. # If this is included, it should return an array with flow bins added,