-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (57 loc) · 1.5 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (57 loc) · 1.5 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
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "eq-studio-api"
version = "0.1.1"
description = "EasyQuant Web Strategy Studio — FastAPI backend"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"fastapi>=0.110.0",
"uvicorn[standard]>=0.27.0",
"sqlalchemy[asyncio]>=2.0.25",
"aiosqlite>=0.19.0",
"pydantic>=2.6.0",
"pydantic-settings>=2.2.0",
"python-multipart>=0.0.9",
"ruff>=0.3.0",
"black>=24.0.0",
"structlog>=24.1.0",
"slowapi>=0.1.9",
"alembic>=1.13.0",
]
[project.optional-dependencies]
dev = ["httpx>=0.27.0", "pytest>=7.0", "pytest-asyncio>=0.23.0", "mypy>=1.9.0"]
[tool.setuptools.packages.find]
where = ["."]
include = ["studio_api*"]
[tool.setuptools.package-data]
studio_api = ["data/*.json"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
ignore = [
"E501", # line-too-long — black handles this
# Python 3.9 compatibility: keep Optional[T], List[T], Dict[K, V]
# instead of T | None, list[T], dict[K, V] (3.10+ syntax)
"UP006",
"UP035",
"UP045",
]
[tool.ruff.lint.isort]
known-first-party = ["studio_api"]
[tool.black]
line-length = 100
target-version = ["py310", "py311"]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
warn_unused_ignores = false
# lenient mode — tighten gradually
check_untyped_defs = false