forked from BiFangKNT/mtga
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (74 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
84 lines (74 loc) · 1.8 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mtga-gui"
version = "1.7.1"
description = "基于本地代理的方式,绕过 IDE 的固定模型服务商限制"
readme = "README.md"
requires-python = ">=3.13"
authors = [
{name = "BiFangKNT"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"flask",
"requests",
"werkzeug",
"jinja2",
"itsdangerous",
"click",
"urllib3",
"idna",
"certifi",
"platformdirs>=4.3.0",
"PyYAML",
"tkinterweb>=4.9.0",
"pyobjc>=12.1 ; sys_platform == 'darwin'",
"charset-normalizer>=3.4.4",
]
[project.scripts]
mtga-gui = "mtga_gui:main"
[dependency-groups]
dev = [
"pyright>=1.1.407",
"ruff>=0.14.4",
"yamllint>=1.37.1",
]
mac-build = [
"dmgbuild>=1.6.5 ; sys_platform == 'darwin'",
"nuitka>=2.7.12 ; sys_platform == 'darwin'",
]
win-build = [
"nuitka>=2.7.12 ; sys_platform == 'win32'",
]
[tool.pyright]
pythonVersion = "3.13"
exclude = ["archive", ".uv_cache", ".venv"]
venvPath = "."
venv = ".venv"
[tool.ruff]
line-length = 100
target-version = "py313"
extend-exclude = ["archive"]
# 开启常用规则集:E/F 是基础错误;I=imports;B=bugbear;UP=pyupgrade;SIM=简化;
# PL= Pylint 规则子集(减少你对 Pylint 的依赖)
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM", "PL"]
fixable = ["ALL"] # 尽可能自动修复
[tool.ruff.format]
line-ending = "auto"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/README.md",
"/requirements.txt",
]