Skip to content

Commit 50dd20f

Browse files
authored
Update pyproject.toml
1 parent a67419b commit 50dd20f

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

pyproject.toml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ dependencies = [
113113
"xor-cipher",
114114
"yfinance",
115115
]
116+
[build-system]
117+
requires = ["setuptools>=65", "wheel"]
118+
build-backend = "setuptools.build_meta"
119+
116120
[tool.ruff]
117121
line-length = 88
118122
target-version = "py313"
@@ -148,3 +152,72 @@ max-args = 10
148152
max-branches = 20
149153
max-returns = 8
150154
max-statements = 88
155+
156+
[tool.codespell]
157+
ignore-words-list = "3rt,abd,aer,ans,bitap,crate,damon,fo,followings,hist,iff,kwanza,manuel,mater,secant,som,sur,tim,toi,zar"
158+
skip = "*.css,*.js,*.lock"
159+
[tool.ruff.lint.isort]
160+
known-first-party = ["python"]
161+
combine-as-imports = true
162+
163+
[tool.ruff.lint.per-file-ignores]
164+
"__init__.py" = ["F401"]
165+
"tests/**" = ["S101", "PT011", "PT018"]
166+
167+
[tool.ruff.lint.flake8-2020]
168+
check-tuple-unpacking = false
169+
[tool.mypy]
170+
python_version = "3.13"
171+
ignore_missing_imports = true
172+
show_error_codes = true
173+
strict = true
174+
175+
# 性能优化
176+
incremental = true
177+
cache_dir = ".mypy_cache"
178+
workers = 4
179+
180+
# 文件排除
181+
exclude = '''
182+
.*venv.*|
183+
.*__pycache__.*|
184+
.*migrations.*|
185+
.*node_modules.*|
186+
.*dist.*|
187+
.*build.*|
188+
.*templates/.*\.html
189+
'''
190+
191+
[[tool.mypy.overrides]]
192+
module = [
193+
"django.*",
194+
"tensorflow.*",
195+
"keras.*",
196+
"sklearn.*",
197+
"matplotlib.*",
198+
"pymongo.*",
199+
"firebase_admin.*",
200+
"numpy.*",
201+
"pandas.*",
202+
"cv2.*"
203+
]
204+
ignore_missing_imports = true
205+
206+
[[tool.mypy.overrides]]
207+
module = [
208+
".*_pb2.*",
209+
".*_pb2_grpc.*"
210+
]
211+
ignore_errors = true
212+
213+
[[tool.mypy.overrides]]
214+
module = [
215+
"tests.*",
216+
".*_test\.py"
217+
]
218+
strict = false
219+
disallow_untyped_defs = false
220+
221+
[[tool.mypy.overrides]]
222+
module = ["legacy.*"]
223+
strict = false

0 commit comments

Comments
 (0)