Skip to content

Commit 763d0c8

Browse files
⬆️ auto update by pre-commit hooks (#141)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b96706e commit 763d0c8

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ ci:
77
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.8.6
10+
rev: v0.9.4
1111
hooks:
1212
- id: ruff
1313
args: [--fix, --exit-non-zero-on-fix]
1414
stages: [pre-commit]
1515

1616
- repo: https://github.com/pycqa/isort
17-
rev: 5.13.2
17+
rev: 6.0.0
1818
hooks:
1919
- id: isort
2020
stages: [pre-commit]
2121

2222
- repo: https://github.com/psf/black
23-
rev: 24.10.0
23+
rev: 25.1.0
2424
hooks:
2525
- id: black
2626
stages: [pre-commit]

nb_cli/handlers/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# -- Windows support functions --
1010
def _get_win_folder_from_registry(
11-
csidl_name: Literal["CSIDL_APPDATA", "CSIDL_COMMON_APPDATA", "CSIDL_LOCAL_APPDATA"]
11+
csidl_name: Literal["CSIDL_APPDATA", "CSIDL_COMMON_APPDATA", "CSIDL_LOCAL_APPDATA"],
1212
) -> Path:
1313
"""
1414
This is a fallback technique at best. I'm not sure if using the
@@ -32,7 +32,7 @@ def _get_win_folder_from_registry(
3232

3333

3434
def _get_win_folder_with_ctypes(
35-
csidl_name: Literal["CSIDL_APPDATA", "CSIDL_COMMON_APPDATA", "CSIDL_LOCAL_APPDATA"]
35+
csidl_name: Literal["CSIDL_APPDATA", "CSIDL_COMMON_APPDATA", "CSIDL_LOCAL_APPDATA"],
3636
) -> Path:
3737
csidl_const = {
3838
"CSIDL_APPDATA": 26,

nb_cli/handlers/meta.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_project_root(cwd: Optional[Path] = None) -> Path:
4242

4343

4444
def requires_project_root(
45-
func: Callable[P, Coroutine[Any, Any, R]]
45+
func: Callable[P, Coroutine[Any, Any, R]],
4646
) -> Callable[P, Coroutine[Any, Any, R]]:
4747
@wraps(func)
4848
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
@@ -135,7 +135,7 @@ async def get_python_version(
135135

136136

137137
def requires_python(
138-
func: Callable[P, Coroutine[Any, Any, R]]
138+
func: Callable[P, Coroutine[Any, Any, R]],
139139
) -> Callable[P, Coroutine[Any, Any, R]]:
140140
@wraps(func)
141141
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
@@ -198,7 +198,7 @@ async def get_nonebot_version(
198198

199199

200200
def requires_nonebot(
201-
func: Callable[P, Coroutine[Any, Any, R]]
201+
func: Callable[P, Coroutine[Any, Any, R]],
202202
) -> Callable[P, Coroutine[Any, Any, R]]:
203203
@wraps(func)
204204
@requires_python
@@ -257,7 +257,7 @@ async def get_pip_version(
257257

258258

259259
def requires_pip(
260-
func: Callable[P, Coroutine[Any, Any, R]]
260+
func: Callable[P, Coroutine[Any, Any, R]],
261261
) -> Callable[P, Coroutine[Any, Any, R]]:
262262
@wraps(func)
263263
@requires_python

nb_cli/handlers/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def ensure_process_terminated(
20-
func: Callable[P, Coroutine[Any, Any, asyncio.subprocess.Process]]
20+
func: Callable[P, Coroutine[Any, Any, asyncio.subprocess.Process]],
2121
) -> Callable[P, Coroutine[Any, Any, asyncio.subprocess.Process]]:
2222
tasks: set[asyncio.Task] = set()
2323

nb_cli/handlers/signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def handle_signal(signum: int, frame: Optional[FrameType]) -> None:
6060

6161

6262
def register_signal_handler(
63-
handler: Callable[[int, Optional[FrameType]], None]
63+
handler: Callable[[int, Optional[FrameType]], None],
6464
) -> None:
6565
handlers.append(handler)
6666

0 commit comments

Comments
 (0)