Skip to content

Commit

Permalink
chore: update pre-commit hooks (#117)
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.9.1 → 23.11.0](psf/black-pre-commit-mirror@23.9.1...23.11.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.6](astral-sh/ruff-pre-commit@v0.0.292...v0.1.6)
- [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.7.1](pre-commit/mirrors-mypy@v1.6.0...v1.7.1)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](pre-commit/mirrors-prettier@v3.0.3...v3.1.0)
- [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.2](python-jsonschema/check-jsonschema@0.27.0...0.27.2)

* Update numpy_plottable.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 28, 2023
1 parent cbd4e70 commit 0344dd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 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.9.1
rev: 23.11.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.0.292"
rev: "v0.1.6"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
rev: v1.7.1
hooks:
- id: mypy
files: ^(src|tests)
Expand Down Expand Up @@ -61,13 +61,13 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
rev: "v3.1.0"
hooks:
- id: prettier
types_or: [json]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.0
rev: 0.27.2
hooks:
- id: check-readthedocs
- id: check-github-workflows
Expand Down
2 changes: 1 addition & 1 deletion src/uhi/numpy_plottable.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __getitem__(self, index: int) -> tuple[float, float]:
Get the pair of edges (not discrete) or bin label (discrete).
"""

return tuple(self.edges[index]) # type: ignore[return-value]
return tuple(self.edges[index])

def __len__(self) -> int:
"""
Expand Down

0 comments on commit 0344dd6

Please sign in to comment.