From 1659b009dcd2fefb8701092aa65481cc2d1ba101 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:10:45 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.2.0) - [github.com/psf/black: 23.11.0 → 24.1.1](https://github.com/psf/black/compare/23.11.0...24.1.1) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14c9745..b887df0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,18 +5,18 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.2.0 hooks: - id: ruff args: [--fix, --unsafe-fixes] - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.8.0 hooks: - id: mypy files: "^motile/" From 0b75a92571ca767f855f460cc55ed49d57498e00 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:10:53 +0000 Subject: [PATCH 2/2] style(pre-commit.ci): auto fixes [...] --- motile/plot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/motile/plot.py b/motile/plot.py index 41ad005..7182803 100644 --- a/motile/plot.py +++ b/motile/plot.py @@ -317,13 +317,11 @@ def edge_alpha_func(edge: EdgeId) -> float: @overload -def _to_rgba(color: list[Color], alpha: float | list[float] = 1.0) -> list[str]: - ... +def _to_rgba(color: list[Color], alpha: float | list[float] = 1.0) -> list[str]: ... @overload -def _to_rgba(color: Color, alpha: float | list[float] = 1.0) -> str: - ... +def _to_rgba(color: Color, alpha: float | list[float] = 1.0) -> str: ... def _to_rgba(