Skip to content

Commit b9d344f

Browse files
chore(deps): update python docker tag to v3.14.2 (#432)
* chore(deps): update python docker tag to v3.14.2 * chore(deps):更新所有依赖 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: uy/sun <[email protected]>
1 parent cf32f21 commit b9d344f

File tree

12 files changed

+447
-336
lines changed

12 files changed

+447
-336
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.5
1+
3.14.2

docker/noneflow.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 这样能分别控制 uv 和 Python 版本
2-
FROM python:3.13.5-slim
2+
FROM python:3.14.2-slim
33
COPY --from=ghcr.io/astral-sh/uv:0.9.17 /uv /bin/uv
44

55
# 设置时区

docker/nonetest.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 这样能分别控制 uv 和 Python 版本
2-
FROM python:3.13.5-slim
2+
FROM python:3.14.2-slim
33
COPY --from=ghcr.io/astral-sh/uv:0.9.17 /uv /bin/uv
44

55
WORKDIR /app

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Manage publish related issues in nonebot2 project"
55
authors = [{ name = "uy_sun", email = "[email protected]" }]
66
readme = "README.md"
77
license = { file = "LICENSE" }
8-
requires-python = ">=3.13.5"
8+
requires-python = ">=3.14.2"
99
dependencies = [
1010
"click>=8.3.1",
1111
"docker>=7.1.0",

tests/providers/validation/fields/test_homepage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ async def test_homepage_failed_empty_homepage(mocked_api: MockRouter) -> None:
6767
"msg": "字符串应满足格式 '^(https?://.*|/docs/.*)$'",
6868
"input": "",
6969
"ctx": {"pattern": "^(https?://.*|/docs/.*)$"},
70+
"url": "https://errors.pydantic.dev/2.12/v/string_pattern_mismatch",
7071
}
7172
]
7273
)

tests/providers/validation/fields/test_missing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async def test_fields_missing_plugin(mocked_api: MockRouter) -> None:
5757
"test_output": "error",
5858
"time": "2023-09-01T00:00:00.000000Z",
5959
},
60+
"url": "https://errors.pydantic.dev/2.12/v/missing",
6061
},
6162
{
6263
"type": "missing",
@@ -75,6 +76,7 @@ async def test_fields_missing_plugin(mocked_api: MockRouter) -> None:
7576
"test_output": "error",
7677
"time": "2023-09-01T00:00:00.000000Z",
7778
},
79+
"url": "https://errors.pydantic.dev/2.12/v/missing",
7880
},
7981
{
8082
"type": "missing",
@@ -93,6 +95,7 @@ async def test_fields_missing_plugin(mocked_api: MockRouter) -> None:
9395
"test_output": "error",
9496
"time": "2023-09-01T00:00:00.000000Z",
9597
},
98+
"url": "https://errors.pydantic.dev/2.12/v/missing",
9699
},
97100
{
98101
"type": "missing",
@@ -111,6 +114,7 @@ async def test_fields_missing_plugin(mocked_api: MockRouter) -> None:
111114
"test_output": "error",
112115
"time": "2023-09-01T00:00:00.000000Z",
113116
},
117+
"url": "https://errors.pydantic.dev/2.12/v/missing",
114118
},
115119
{
116120
"type": "missing",
@@ -129,6 +133,7 @@ async def test_fields_missing_plugin(mocked_api: MockRouter) -> None:
129133
"test_output": "error",
130134
"time": "2023-09-01T00:00:00.000000Z",
131135
},
136+
"url": "https://errors.pydantic.dev/2.12/v/missing",
132137
},
133138
{
134139
"type": "plugin.test",

tests/providers/validation/fields/test_name.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ async def test_name_too_long(mocked_api: MockRouter) -> None:
3838
"msg": "字符串长度不能超过 50 个字符",
3939
"input": "looooooooooooooooooooooooooooooooooooooooooooooooooooooooong",
4040
"ctx": {"max_length": 50},
41+
"url": "https://errors.pydantic.dev/2.12/v/string_too_long",
4142
}
4243
]
4344
)

tests/providers/validation/fields/test_tags.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ async def test_tags_color_missing(mocked_api: MockRouter) -> None:
4343
"loc": ("tags", 0, "color"),
4444
"msg": "字段不存在",
4545
"input": {"label": "test"},
46+
"url": "https://errors.pydantic.dev/2.12/v/missing",
4647
}
4748
)
4849
]
@@ -134,6 +135,7 @@ async def test_tags_label_invalid(mocked_api: MockRouter) -> None:
134135
"msg": "字符串长度不能超过 10 个字符",
135136
"input": "12345678901",
136137
"ctx": {"max_length": 10},
138+
"url": "https://errors.pydantic.dev/2.12/v/string_too_long",
137139
}
138140
)
139141
]
@@ -192,6 +194,7 @@ async def test_tags_number_invalid(mocked_api: MockRouter) -> None:
192194
{"label": "4", "color": "#ffffff"},
193195
],
194196
"ctx": {"field_type": "List", "max_length": 3, "actual_length": 4},
197+
"url": "https://errors.pydantic.dev/2.12/v/too_long",
195198
}
196199
)
197200
]
@@ -284,6 +287,7 @@ async def test_tags_json_not_list(mocked_api: MockRouter) -> None:
284287
"loc": ("tags",),
285288
"msg": "值不是合法的列表",
286289
"input": {"test": "test"},
290+
"url": "https://errors.pydantic.dev/2.12/v/list_type",
287291
}
288292
)
289293
]
@@ -330,6 +334,7 @@ async def test_tags_json_not_dict(mocked_api: MockRouter) -> None:
330334
"msg": "值不是合法的字典",
331335
"input": "1",
332336
"ctx": {"class_name": "Tag"},
337+
"url": "https://errors.pydantic.dev/2.12/v/model_type",
333338
}
334339
)
335340
]

tests/providers/validation/test_adapter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ async def test_adapter_info_validation_failed(mocked_api: MockRouter) -> None:
7272
"loc": ("time",),
7373
"msg": "值不是合法的字符串",
7474
"input": None,
75+
"url": "https://errors.pydantic.dev/2.12/v/string_type",
7576
},
7677
{
7778
"type": "string_type",
7879
"loc": ("version",),
7980
"msg": "值不是合法的字符串",
8081
"input": None,
82+
"url": "https://errors.pydantic.dev/2.12/v/string_type",
8183
},
8284
{
8385
"type": "homepage",
@@ -92,6 +94,7 @@ async def test_adapter_info_validation_failed(mocked_api: MockRouter) -> None:
9294
"msg": "字符串长度不能超过 10 个字符",
9395
"input": "testtoolong",
9496
"ctx": {"max_length": 10},
97+
"url": "https://errors.pydantic.dev/2.12/v/string_too_long",
9598
},
9699
{
97100
"type": "color_error",

tests/providers/validation/test_bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ async def test_bot_info_validation_failed(mocked_api: MockRouter) -> None:
5454
"msg": "字符串长度不能超过 50 个字符",
5555
"input": "tooooooooooooooooooooooooooooooooooooooooooooooooog",
5656
"ctx": {"max_length": 50},
57+
"url": "https://errors.pydantic.dev/2.12/v/string_too_long",
5758
},
5859
{
5960
"type": "homepage",
@@ -68,6 +69,7 @@ async def test_bot_info_validation_failed(mocked_api: MockRouter) -> None:
6869
"msg": "字符串长度不能超过 10 个字符",
6970
"input": "testtoolong",
7071
"ctx": {"max_length": 10},
72+
"url": "https://errors.pydantic.dev/2.12/v/string_too_long",
7173
},
7274
{
7375
"type": "color_error",

0 commit comments

Comments
 (0)