From 699244237723451789f6aa2af9cfd89bae9dffcc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 16:37:33 +0000 Subject: [PATCH 1/2] :arrow_up: auto update by pre-commit-ci MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/hadialqattan/pycln: v2.1.3 → v2.5.0](https://github.com/hadialqattan/pycln/compare/v2.1.3...v2.5.0) - [github.com/pycqa/isort: 5.12.0 → 6.0.1](https://github.com/pycqa/isort/compare/5.12.0...6.0.1) - [github.com/psf/black: 23.1.0 → 25.1.0](https://github.com/psf/black/compare/23.1.0...25.1.0) - [github.com/pycqa/flake8: 6.0.0 → 7.2.0](https://github.com/pycqa/flake8/compare/6.0.0...7.2.0) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/nonebot/nonemoji: v0.1.3 → v0.1.4](https://github.com/nonebot/nonemoji/compare/v0.1.3...v0.1.4) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fbbb48..e2a807e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,33 +7,33 @@ ci: repos: - repo: https://github.com/hadialqattan/pycln - rev: v2.1.3 + rev: v2.5.0 hooks: - id: pycln - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.2.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/nonebot/nonemoji - rev: v0.1.3 + rev: v0.1.4 hooks: - id: nonemoji stages: [prepare-commit-msg] From f5596e94cae27d6074d9e783d135a2bd4eb50bad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 16:41:02 +0000 Subject: [PATCH 2/2] :rotating_light: auto fix by pre-commit-ci --- nb_cli_plugin_rplugin/cli.py | 6 +++--- nb_cli_plugin_rplugin/meta.py | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/nb_cli_plugin_rplugin/cli.py b/nb_cli_plugin_rplugin/cli.py index d9fcfe8..606044c 100644 --- a/nb_cli_plugin_rplugin/cli.py +++ b/nb_cli_plugin_rplugin/cli.py @@ -89,9 +89,9 @@ async def _choose_specified_page(): _("Page to go({page}/{all_pages}):").format( page=page, all_pages=all_pages ), - validator=lambda x: 1 <= int(x) <= all_pages - if x.isdigit() - else False, + validator=lambda x: ( + 1 <= int(x) <= all_pages if x.isdigit() else False + ), ) page = int(_page) diff --git a/nb_cli_plugin_rplugin/meta.py b/nb_cli_plugin_rplugin/meta.py index 5cd57fa..3dcad3b 100644 --- a/nb_cli_plugin_rplugin/meta.py +++ b/nb_cli_plugin_rplugin/meta.py @@ -56,8 +56,7 @@ class PyPIPackage(BaseModel): if TYPE_CHECKING: - async def get_plugins() -> List[Plugin]: - ... + async def get_plugins() -> List[Plugin]: ... else: @@ -120,8 +119,7 @@ async def get_github_statistics(repo: str) -> Repo: if TYPE_CHECKING: - async def get_pypi_meta(package: str) -> PyPIPackage: - ... + async def get_pypi_meta(package: str) -> PyPIPackage: ... else: