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] 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: