From 69d3bc9ce1bc49e3a5f0d65088d41c8b50283d74 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 20:45:17 +0000 Subject: [PATCH 1/7] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.4.0 → v3.6.0](https://github.com/asottile/pyupgrade/compare/v3.4.0...v3.6.0) - [github.com/asottile/add-trailing-comma: v2.4.0 → v2.5.1](https://github.com/asottile/add-trailing-comma/compare/v2.4.0...v2.5.1) - [github.com/hadialqattan/pycln: v2.1.3 → v2.1.5](https://github.com/hadialqattan/pycln/compare/v2.1.3...v2.1.5) --- .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 b202571..e92c5e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: blacken-docs - repo: https://github.com/asottile/pyupgrade - rev: v3.4.0 + rev: v3.6.0 hooks: - id: pyupgrade args: [--py37-plus, --keep-runtime-typing] @@ -29,11 +29,11 @@ repos: hooks: - id: reorder-python-imports - repo: https://github.com/asottile/add-trailing-comma - rev: v2.4.0 + rev: v2.5.1 hooks: - id: add-trailing-comma - repo: https://github.com/hadialqattan/pycln - rev: v2.1.3 + rev: v2.1.5 hooks: - id: pycln From 6670da76e87c8ade60304aad4048b5d78b0ea2dc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 20:45:28 +0000 Subject: [PATCH 2/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pomice/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomice/pool.py b/pomice/pool.py index 107c64b..ce06f30 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -447,7 +447,7 @@ class Node: """Takes a guild ID as a parameter. Returns a pomice Player object or None.""" return self._players.get(guild_id, None) - async def connect(self, *, reconnect: bool = False) -> "Node": + async def connect(self, *, reconnect: bool = False) -> Node: """Initiates a connection with a Lavalink node and adds it to the node pool.""" await self._bot.wait_until_ready() From 1f20ebf6c620782575ba68d9eb30891d6bcafac1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:02:01 +0000 Subject: [PATCH 3/7] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/blacken-docs: 1.13.0 → 1.14.0](https://github.com/asottile/blacken-docs/compare/1.13.0...1.14.0) - [github.com/asottile/pyupgrade: v3.6.0 → v3.7.0](https://github.com/asottile/pyupgrade/compare/v3.6.0...v3.7.0) - [github.com/asottile/reorder-python-imports: v3.9.0 → v3.10.0](https://github.com/asottile/reorder-python-imports/compare/v3.9.0...v3.10.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 e92c5e0..15891ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,16 +16,16 @@ repos: - id: black language_version: python3.10 - repo: https://github.com/asottile/blacken-docs - rev: 1.13.0 + rev: 1.14.0 hooks: - id: blacken-docs - repo: https://github.com/asottile/pyupgrade - rev: v3.6.0 + rev: v3.7.0 hooks: - id: pyupgrade args: [--py37-plus, --keep-runtime-typing] - repo: https://github.com/asottile/reorder-python-imports - rev: v3.9.0 + rev: v3.10.0 hooks: - id: reorder-python-imports - repo: https://github.com/asottile/add-trailing-comma From c5f8ded0b12738676c5d6265028ff208eef6f8fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 21:42:32 +0000 Subject: [PATCH 4/7] [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.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0) - [github.com/asottile/blacken-docs: 1.14.0 → 1.15.0](https://github.com/asottile/blacken-docs/compare/1.14.0...1.15.0) - [github.com/asottile/pyupgrade: v3.7.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.7.0...v3.10.1) - [github.com/asottile/add-trailing-comma: v2.5.1 → v3.0.1](https://github.com/asottile/add-trailing-comma/compare/v2.5.1...v3.0.1) - [github.com/hadialqattan/pycln: v2.1.5 → v2.2.0](https://github.com/hadialqattan/pycln/compare/v2.1.5...v2.2.0) --- .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 15891ae..ad050ef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,16 +11,16 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black language_version: python3.10 - repo: https://github.com/asottile/blacken-docs - rev: 1.14.0 + rev: 1.15.0 hooks: - id: blacken-docs - repo: https://github.com/asottile/pyupgrade - rev: v3.7.0 + rev: v3.10.1 hooks: - id: pyupgrade args: [--py37-plus, --keep-runtime-typing] @@ -29,11 +29,11 @@ repos: hooks: - id: reorder-python-imports - repo: https://github.com/asottile/add-trailing-comma - rev: v2.5.1 + rev: v3.0.1 hooks: - id: add-trailing-comma - repo: https://github.com/hadialqattan/pycln - rev: v2.1.5 + rev: v2.2.0 hooks: - id: pycln From 223be293849649c2c898100cd02d84a38708308e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 21:42:42 +0000 Subject: [PATCH 5/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pomice/player.py | 8 ++++---- pomice/pool.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pomice/player.py b/pomice/player.py index da01696..7361f55 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -414,7 +414,7 @@ class Player(VoiceProtocol): return await self._node.build_track(identifier, ctx=ctx) async def get_recommendations( - self, *, track: Track, ctx: Optional[commands.Context] = None + self, *, track: Track, ctx: Optional[commands.Context] = None, ) -> Optional[Union[List[Track], Playlist]]: """ Gets recommendations from either YouTube or Spotify. @@ -424,7 +424,7 @@ class Player(VoiceProtocol): return await self._node.get_recommendations(track=track, ctx=ctx) async def connect( - self, *, timeout: float, reconnect: bool, self_deaf: bool = False, self_mute: bool = False + self, *, timeout: float, reconnect: bool, self_deaf: bool = False, self_mute: bool = False, ) -> None: await self.guild.change_voice_state( channel=self.channel, @@ -475,7 +475,7 @@ class Player(VoiceProtocol): self._log.debug("Player has been destroyed.") async def play( - self, track: Track, *, start: int = 0, end: int = 0, ignore_if_playing: bool = False + self, track: Track, *, start: int = 0, end: int = 0, ignore_if_playing: bool = False, ) -> Track: """Plays a track. If a Spotify track is passed in, it will be handled accordingly.""" @@ -669,7 +669,7 @@ class Player(VoiceProtocol): return self._filters async def edit_filter( - self, *, filter_tag: str, edited_filter: Filter, fast_apply: bool = False + self, *, filter_tag: str, edited_filter: Filter, fast_apply: bool = False, ) -> Filters: """Edits a filter from the player using its filter tag and a new filter of the same type. The filter to be replaced must have the same tag as the one you are replacing it with. diff --git a/pomice/pool.py b/pomice/pool.py index ce06f30..bba2d75 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -836,7 +836,7 @@ class Node: ) async def get_recommendations( - self, *, track: Track, ctx: Optional[commands.Context] = None + self, *, track: Track, ctx: Optional[commands.Context] = None, ) -> Optional[Union[List[Track], Playlist]]: """ Gets recommendations from either YouTube or Spotify. From 18fed3a08932e0b497abb3e581c9acd0c4ca33c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 21:21:38 +0000 Subject: [PATCH 6/7] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/hadialqattan/pycln: v2.2.0 → v2.2.1](https://github.com/hadialqattan/pycln/compare/v2.2.0...v2.2.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ad050ef..5dd121e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: hooks: - id: add-trailing-comma - repo: https://github.com/hadialqattan/pycln - rev: v2.2.0 + rev: v2.2.1 hooks: - id: pycln From 50b5eab860cfbbd49e10c42374451b1679e084d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 21:21:47 +0000 Subject: [PATCH 7/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pomice/player.py | 25 +++++++++++++++++++++---- pomice/pool.py | 5 ++++- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/pomice/player.py b/pomice/player.py index 7361f55..c1f3436 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -414,7 +414,10 @@ class Player(VoiceProtocol): return await self._node.build_track(identifier, ctx=ctx) async def get_recommendations( - self, *, track: Track, ctx: Optional[commands.Context] = None, + self, + *, + track: Track, + ctx: Optional[commands.Context] = None, ) -> Optional[Union[List[Track], Playlist]]: """ Gets recommendations from either YouTube or Spotify. @@ -424,7 +427,12 @@ class Player(VoiceProtocol): return await self._node.get_recommendations(track=track, ctx=ctx) async def connect( - self, *, timeout: float, reconnect: bool, self_deaf: bool = False, self_mute: bool = False, + self, + *, + timeout: float, + reconnect: bool, + self_deaf: bool = False, + self_mute: bool = False, ) -> None: await self.guild.change_voice_state( channel=self.channel, @@ -475,7 +483,12 @@ class Player(VoiceProtocol): self._log.debug("Player has been destroyed.") async def play( - self, track: Track, *, start: int = 0, end: int = 0, ignore_if_playing: bool = False, + self, + track: Track, + *, + start: int = 0, + end: int = 0, + ignore_if_playing: bool = False, ) -> Track: """Plays a track. If a Spotify track is passed in, it will be handled accordingly.""" @@ -669,7 +682,11 @@ class Player(VoiceProtocol): return self._filters async def edit_filter( - self, *, filter_tag: str, edited_filter: Filter, fast_apply: bool = False, + self, + *, + filter_tag: str, + edited_filter: Filter, + fast_apply: bool = False, ) -> Filters: """Edits a filter from the player using its filter tag and a new filter of the same type. The filter to be replaced must have the same tag as the one you are replacing it with. diff --git a/pomice/pool.py b/pomice/pool.py index bba2d75..817909c 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -836,7 +836,10 @@ class Node: ) async def get_recommendations( - self, *, track: Track, ctx: Optional[commands.Context] = None, + self, + *, + track: Track, + ctx: Optional[commands.Context] = None, ) -> Optional[Union[List[Track], Playlist]]: """ Gets recommendations from either YouTube or Spotify.