From f3130b4c9092bf0e0c064648c83200d75a64e1ab Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:28:50 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.292](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.287...v0.0.292) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.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 16d409d..76ab22d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,13 +5,13 @@ ci: style: auto fixes from pre-commit hooks repos: - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black name: Running black in all files. - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.0.292 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -26,7 +26,7 @@ repos: additional_dependencies: [nextcord, aiohttp] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-ast name: Check if python files are valid syntax for the ast parser From 758db8e12a284645800e5c7d9761d774ab0c443e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:29:06 +0000 Subject: [PATCH 2/2] style: auto fixes from pre-commit hooks --- mafic/player.py | 2 +- mafic/pool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mafic/player.py b/mafic/player.py index efb1650..2c7789a 100644 --- a/mafic/player.py +++ b/mafic/player.py @@ -323,7 +323,7 @@ def dispatch_event(self, data: EventPayload) -> None: event_type = cast(str, data["type"]) _log.warning("Unknown incoming event type %s", event_type) - async def on_voice_state_update( # pyright: ignore[reportIncompatibleMethodOverride] # noqa: E501 + async def on_voice_state_update( # pyright: ignore[reportIncompatibleMethodOverride] self, data: GuildVoiceStatePayload ) -> None: """Dispatch a voice state update. diff --git a/mafic/pool.py b/mafic/pool.py index 132293b..69af457 100644 --- a/mafic/pool.py +++ b/mafic/pool.py @@ -326,7 +326,7 @@ def get_node( # It is a classproperty. # fmt: off - nodes = cast("list[Node[ClientT]]", cls.nodes) # pyright: ignore # noqa: PGH003, E501 + nodes = cast("list[Node[ClientT]]", cls.nodes) # pyright: ignore # noqa: PGH003 # fmt: on for strategy in actual_strategies: