-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathpyproject.toml
More file actions
40 lines (35 loc) · 1.3 KB
/
Copy pathpyproject.toml
File metadata and controls
40 lines (35 loc) · 1.3 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
# FileCodeBox tooling config.
# Application repo (not a library): no [project] packaging metadata here, and
# requirements.txt remains the single source of runtime deps. This file only
# holds tool configs plus the dev dependency group (PEP 735, `uv sync --group dev`).
[tool.pytest.ini_options]
testpaths = ["tests"]
# Tests import top-level packages (core/apps) directly; put the repo root on
# sys.path so bare `pytest` collects without `python -m pytest`.
pythonpath = ["."]
# Async tests/fixtures without per-test decorators.
asyncio_mode = "auto"
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"httpx",
"ruff",
"pre-commit",
"moto[s3,server]",
"mypy",
]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
# Core correctness rules only for now (same families as ruff defaults):
# E4/E7/E9 = syntax/indent errors and unused variables; F = pyflakes
# (unused imports, undefined names). Style families (pyupgrade, broad-except,
# import sorting) are deferred to keep the initial diff minimal.
select = ["E4", "E7", "E9", "F"]
[tool.mypy]
python_version = "3.12"
# 渐进引入:基线棘轮模式(scripts/mypy-ratchet.py)——只许修复减少、不许新增。
# 修掉基线里的错误后跑 `--regenerate` 收紧基线。
ignore_missing_imports = true