-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (78 loc) · 2 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (78 loc) · 2 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
[build-system]
requires = ["setuptools>=75.0"]
build-backend = "setuptools.build_meta"
[project]
name = "michi"
version = "0.1.0"
description = "Astana passenger flow forecasting platform with real OSM data, FastAPI backend, React dashboard, and Docker deployment"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"numpy>=2.4.1",
"pandas>=2.3.3",
"plotly>=6.5.1",
"statsmodels>=0.14.6",
"streamlit>=1.52.2",
"torch>=2.9.1",
"watchdog>=6.0.0",
"xgboost>=3.1.3",
"osmnx>=2.0.0",
"requests>=2.32.0",
"shapely>=2.0.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"sqlalchemy>=2.0.0",
"psycopg2-binary>=2.9.10",
"redis>=5.2.0",
"celery>=5.4.0",
"pydantic>=2.9.0",
"pydantic-settings>=2.6.0",
"httpx>=0.27.0",
"python-multipart>=0.0.12",
"alembic>=1.14.0",
]
[dependency-groups]
dev = [
"pytest>=9.0.3",
"ruff>=0.11.0",
"mypy>=1.15.0",
]
[tool.ruff]
target-version = "py313"
line-length = 120
src = ["backend", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # function call in default argument (common in FastAPI Depends)
"SIM108", # ternary operator (readability preference)
"RUF002", # ambiguous unicode in docstrings (intentional math notation: σ, α, ×, ∈, etc.)
"E402", # module import not at top (seed.py needs logger before imports)
]
[tool.ruff.lint.isort]
known-first-party = ["backend"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
exclude = [
"main.py",
".venv/",
"node_modules/",
]