-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
102 lines (94 loc) · 2.56 KB
/
pyproject.toml
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
[project]
name = "tetris-study-league-tools"
version = "0.1.0"
description = "一个供研究联赛使用的小工具"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"nicegui>=2.3.0",
"pydantic>=2.9.2",
"httpx>=0.27.2",
"rich>=13.9.2",
"aiocache>=0.12.3",
"loguru>=0.7.2",
"richuru>=0.1.1",
"msgspec>=0.18.6",
"playwright>=1.47.0",
"yarl>=1.14.0",
"xlsxwriter>=3.2.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
tsl = "tetris_study_league_tools:main"
[tool.uv]
dev-dependencies = ["basedpyright>=1.18.4", "ruff>=0.6.1"]
[tool.ruff]
line-length = 120
target-version = 'py312'
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle errors
'W', # pycodestyle warnings
'C90', # mccabe
'I', # isort
'N', # PEP8-naming
'UP', # pyupgrade
'YTT', # flake8-2020
'ANN', # flake8-annotations
'ASYNC', # flake8-async
'S', # flake8-bandit
'BLE', # flake8-blind-except
'FBT', # flake8-boolean-trap
'B', # flake8-bugbear
'A', # flake8-builtins
'COM', # flake8-commas
'C4', # flake8-comprehensions
'DTZ', # flake8-datetimez
'T10', # flake8-debugger
'EM', # flake8-errmsg
'FA', # flake8-future-annotations
'ISC', # flake8-implicit-str-concat
'ICN', # flake8-import-conventions
'PIE', # flake8-pie
'T20', # flake8-print
'PYI', # flake8-pyi
'Q', # flake8-quotes
'RSE', # flake8-raise
'RET', # flake8-return
'SLF', # flake8-self
'SLOT', # flake8-slots
'SIM', # flake8-simplify
'TID', # flake8-tidy-imports
'TCH', # flake8-type-checking
'ARG', # flake8-unused-arguments
'PTH', # flake8-use-pathlib
'ERA', # eradicate
'PD', # pandas-vet
'PGH', # pygrep-hooks
'PL', # pylint
'TRY', # tryceratops
'FLY', # flynt
'FAST', # FastAPI
'PERF', # Perflint
'FURB', # refurb
'RUF', # Ruff-specific rules
]
ignore = [
'E501', # 过长的行由 ruff format 处理, 剩余的都是字符串
'ANN101', # 由 type checker 自动推断
'ANN102', # 由 type checker 自动推断
'TRY003',
'COM812', # 强制尾随逗号
'TID252', # 相对导入
'ISC001', # format warning
]
flake8-quotes = { inline-quotes = 'single', multiline-quotes = 'double' }
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ['id']
[tool.ruff.format]
quote-style = 'single'