Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 🚀 新功能请求 / 想法
title: "[Feat]: "
description: 提出新功能建议 (这并不意味着你必须实现它)。
labels:
labels:
- "新功能"
- "DEV-需要注意"
body:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ cython_debug/
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
.vscode/

Expand Down
4 changes: 2 additions & 2 deletions src/function/files/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def 获取清单目录(
会验证获取到的清单目录是否存在,不存在则返回 `None`。

此函数没有输出。

:param 包标识符: 指定的包标识符
:type 包标识符: str
:param 包版本: 指定的包版本
Expand Down Expand Up @@ -183,7 +183,7 @@ def FormatManifest(Manifest: str, Comment: str = "# Created with Sundry-Locale")
- 添加 schema
- 添加工具注释
- 去除末尾多余空行 / 添加末尾空行

:param Manifest: 清单文件内容
:type Manifest: str
:param Comment: 工具注释内容
Expand Down
2 changes: 1 addition & 1 deletion src/function/github/pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def 检查重复拉取请求(包标识符: str, 包版本: str) -> bool:

- ^1 相同修改: 指标题包含 `f"{包标识符} {包版本}"` 的拉取请求。
- ^2 打开的: 包括草稿

:param 包标识符: 修改的包的标识符
:type 包标识符: str
:param 包版本: 修改的包的版本
Expand Down
7 changes: 5 additions & 2 deletions src/function/maintain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ class 配置信息:
def 验证配置(配置项: 所有配置项 | str, 配置值: str | bool) -> str | None:
"""
[验证配置]
验证指定的配置项和配置值的配对是否有效,返回为什么无效。
有效返回 None,无效返回 str 原因。

验证指定的配置项和配置值的配对是否有效,返回为什么无效。

有效返回 `None`,无效返回 `str` 原因。

配置项 = 键路径
"""

Expand Down
2 changes: 1 addition & 1 deletion src/tools/maintain/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(哪个工具: str) -> int:
def 清理文件(待清理文件路径: str, 哪个工具: str) -> int:
"""
删除指定的文件夹并打印日志。

:param 待清理文件路径: 指定待清理文件夹的路径
:type 待清理文件路径: str
:param 哪个工具: 指定日志输出中的工具名称
Expand Down
2 changes: 1 addition & 1 deletion src/tools/maintain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def main(args: list[str]) -> int:
args: 参数列表

Returns:
退出代码
退出代码
"""

try:
Expand Down
2 changes: 1 addition & 1 deletion src/tools/maintain/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def main(args: list[str]) -> int:
"""
sundry fun ...

:param args: 参数
:type args: list[str]
:return: 退出代码
Expand Down
2 changes: 1 addition & 1 deletion src/tools/maintain/revert.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def main(args: list[str]) -> int:
def 还原(哪个仓库: str, 仓库路径: str, 是否已提交: bool, 是否丢弃: bool) -> bool:
"""
尝试还原指定的仓库

:param 哪个仓库: pkgs 或 tools
:type 哪个仓库: str
:param 仓库路径: 指定仓库文件夹的所在位置
Expand Down