From a380e571d2bd8b10235a75b293afaa2ef381885f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:20:19 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 23.9.1 → 23.11.0](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...23.11.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.292...v0.1.6) - [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.7.1) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) - [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.0...0.27.2) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ba303ea..6fe0857 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.9.1 + rev: 23.11.0 hooks: - id: black @@ -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) @@ -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 From 8cf0e62843f1a28cb3e1679927352b6e39706115 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 28 Nov 2023 12:03:37 -0500 Subject: [PATCH 2/2] Update numpy_plottable.py --- src/uhi/numpy_plottable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uhi/numpy_plottable.py b/src/uhi/numpy_plottable.py index 95277b6..988f53a 100644 --- a/src/uhi/numpy_plottable.py +++ b/src/uhi/numpy_plottable.py @@ -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: """