Skip to content

Commit 6c130cb

Browse files
👷 CI: 严格约束 test_depend CPython 版本范围 (#3713)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f0bc69b commit 6c130cb

File tree

5 files changed

+35
-33
lines changed

5 files changed

+35
-33
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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.13.3
10+
rev: v0.14.0
1111
hooks:
1212
- id: ruff-check
1313
args: [--fix]

nonebot/typing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def is_none_type(type_: type[t.Any]) -> bool:
104104
def is_type_alias_type(type_: type[t.Any]) -> bool:
105105
"""判断是否是 TypeAliasType 类型"""
106106
return isinstance(type_, t_ext.TypeAliasType)
107+
107108
else:
108109

109110
def is_type_alias_type(type_: type[t.Any]) -> bool:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ all = [
4242

4343
[dependency-groups]
4444
dev = [
45-
"ruff >=0.12.0, <0.13.0",
45+
"ruff >=0.14.0, <0.15.0",
4646
"nonemoji >=0.1.2, <0.2.0",
4747
"pre-commit >=4.0.0, <5.0.0",
4848
]

tests/test_param.py

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

4444
@pytest.mark.anyio
4545
@pytest.mark.xfail(
46-
(3, 13) <= sys.version_info < (3, 14),
46+
((3, 13) <= sys.version_info < (3, 13, 8)) or (3, 14) <= sys.version_info,
4747
reason="CPython Bug, see python/cpython#137317, python/cpython#137862",
4848
)
4949
async def test_depend(app: App):

uv.lock

Lines changed: 31 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)