Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
6 changes: 3 additions & 3 deletions nb_cli_plugin_rplugin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 2 additions & 4 deletions nb_cli_plugin_rplugin/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ class PyPIPackage(BaseModel):

if TYPE_CHECKING:

async def get_plugins() -> List[Plugin]:
...
async def get_plugins() -> List[Plugin]: ...

else:

Expand Down Expand Up @@ -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:

Expand Down