-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (111 loc) · 2.28 KB
/
pyproject.toml
File metadata and controls
124 lines (111 loc) · 2.28 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[build-system]
requires = ["setuptools>=75.1.0", "wheel>=0.41.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["zsim*"]
exclude = [
"results*",
"tests*",
"docs*",
"build*",
".venv*",
".git*",
"electron*",
"dist*",
"knowledge_base*",
]
[tool.pyinstaller]
# ZSim API 配置
spec_file = "zsim_api.spec"
console = true
clean = true
noconfirm = true
[project]
name = "zzz-simulator"
version = "0.3.5"
description = "A simulator for ZZZ game"
requires-python = ">=3.12"
dependencies = [
"pandas~=2.2.3",
"tqdm~=4.66.5",
"numpy~=2.2.5",
"dash~=2.18.2",
"plotly~=6.0.0",
"setuptools~=75.1.0",
"streamlit~=1.44.0",
"aiofiles>=24.1.0",
"pydantic>=2.11.3",
"psutil>=7.0.0",
"streamlit-ace>=0.1.1",
"polars>=1.28.1",
"pywebview>=5.4",
"fastapi>=0.115.12",
"uvicorn>=0.35.0",
"aiosqlite>=0.21.0",
"httpx>=0.28.1",
"dotenv>=0.9.9",
"tomli-w>=1.2.0",
"sqlalchemy>=2.0.43",
"alembic>=1.16.5",
"greenlet>=3.0.3",
"pydantic-settings>=2.12.0",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "Q"]
ignore = ["E501"]
exclude = ["build", "dist", ".venv", "__pypackages__"]
per-file-ignores = { "__init__.py" = ["F401"] }
[tool.black]
line-length = 100
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
skip_glob = ["*/migrations/*", "venv/*", ".venv/*"]
[[tool.uv.index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"
[project.scripts]
zsim = "zsim.run:main"
[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"pyinstaller>=6.13.0",
"pytest>=8.3.5",
"viztracer>=1.0.3",
"objprint>=0.3.0",
"pytest-cov>=5.0.0",
"pytest-asyncio>=1.1.0",
"mypy>=1.17.1",
"ruff>=0.12.12",
"black>=25.11.0",
"isort>=7.0.0",
"pre-commit>=4.2.0",
]
[project.optional-dependencies]
windows = ["pywin32>=308"]