Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (64 loc) · 1.55 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (64 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[project]
name = "Sundry"
version = "255.255.255" # 占位
description = "Sundry 是一个 WinGet 相关的工具,帮您更方便地移除清单、修改清单、分析验证错误等。"
authors = [{ name = "鸭鸭「カモ」" }]
requires-python = ">=3.12"
dependencies = [
"ajaw~=1.1.2",
"catfood==2.3.0",
"colorama>=0.4.6",
"jsonschema==4.26.0",
"keyring>=25.7.0",
"pygments>=2.21.0",
"PyYAML==6.0.3",
"requests>=2.34.2",
"translate>=3.8.1",
"packaging==26.3",
]
[tool.isort]
line_length = 200
[tool.mypy]
mypy_path = "src/"
explicit_package_bases = true
disable_error_code = [
"import-untyped",
"name-defined", # 未在全局定义的 global 变量,和 ty、pylint 的检查重复。
]
[tool.pylint.main]
init-hook = 'import sys; sys.path.append("src")'
max-line-length = 200
notes = ["FIXME", "XXX"]
disable = [
"broad-exception-caught", # W0718
# 文档
"missing-module-docstring", # C0114
"missing-function-docstring", # C0116
# 非 ASCII 字符
"non-ascii-name", # C2401
"non-ascii-module-import", # C2403
# lazy import
"import-outside-toplevel", # C0415
# 风格问题
"superfluous-parens", # C0325
"invalid-name", # C0103
"no-else-return", # R1705
"no-else-raise", # R1720
]
[tool.pytest.ini_options]
pythonpath = "src"
[dependency-groups]
build = [
"Pillow==12.3.0",
"pyinstaller==6.22.3",
]
lint = [
"isort~=9.0",
"pylint~=4.1",
"ruff~=0.16",
"ty~=0.0.84",
]
test = [
"pytest~=9.1",
"pytest-cov~=7.1"
]