Skip to content

Commit

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

updates:
- [github.com/psf/black-pre-commit-mirror: 23.12.1 → 24.2.0](psf/black-pre-commit-mirror@23.12.1...24.2.0)
- [github.com/astral-sh/ruff-pre-commit: v0.1.13 → v0.3.2](astral-sh/ruff-pre-commit@v0.1.13...v0.3.2)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)
- [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.28.0](python-jsonschema/check-jsonschema@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>
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 1f4d0d3 commit 8d3149e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions src/uhi/typing/plottable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8d3149e

Please sign in to comment.