/ eu-air-traffic / pyproject.toml
swadhinbiswas Estimate emissions from OpenAP kinematics, not a flat per-type rate · 9/13/2026
6762ee2
96 lines · 2.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
86
87
88
89
90
91
92
93
94
95
96
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "air-traffic-platform"
version = "0.1.0"
description = "Air Traffic Analytics Platform"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    "fastapi>=0.111.0",
    "uvicorn>=0.30.1",
    "polars>=0.20.31",
    "duckdb>=1.0.0",
    "pydantic>=2.7.4",
    "pydantic-settings>=2.3.4",
    "rich>=13.7.1",
    "requests>=2.32.3",
    "faker>=25.8.0",
    "holidays>=0.51",
    "python-dotenv>=1.0.1",
    "pyarrow>=16.1.0",
    "pandas==2.2.3",
    "streamlit>=1.40.0",
    "plotly>=5.24.0",
    "huggingface_hub>=0.23.0",
    "aiohttp>=3.9",
]

[project.optional-dependencies]
etl = [
    "pyopensky>=2.16",
    "opensky-api",
    "traffic>=2.13",
]
dev = [
    "pytest>=8.2.2",
    "pytest-asyncio>=0.23.0",
    "pytest-cov>=5.0.0",
    "ruff>=0.4.9",
    "mypy>=1.10.0",
    "dbt-duckdb>=1.8.0",
    "httpx>=0.27.0",
]
# VPS collector service: Kafka event bus + live relay.
stream = [
    "kafka-python-ng>=2.2.0",
]
# Turso (libSQL) serving layer for the dashboard.
turso = [
    "libsql-client>=0.3.1",
]
# Build-time only: regenerates services/data/emission_openap.json.
openap = [
    "openap>=2.6.1",
]

[project.scripts]
air-traffic-orchestrate = "pipelines.orchestrator:main"
air-traffic-api = "apps.main:entrypoint"

[tool.ruff]
line-length = 100
target-version = "py312"

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"
markers = [
    "integration: long-running end-to-end tests",
]
addopts = "--cov=apps --cov=config --cov=ingestion --cov=pipelines --cov=scripts --cov=services --cov-report=term-missing:skip-covered"

[tool.coverage.run]
branch = true
source = ["apps", "config", "ingestion", "pipelines", "scripts", "services"]
omit = ["*/__init__.py", "*/tests/*"]

[tool.coverage.report]
exclude_lines = [
    "if __name__ == .__main__.:",
    "pragma: no cover",
]
show_missing = true

[tool.uv]
package = true

[tool.uv.sources]
opensky-api = { git = "https://github.com/openskynetwork/opensky-api.git", subdirectory = "python" }

[tool.setuptools.packages.find]
include = ["apps*", "config*", "ingestion*", "pipelines*", "scripts*", "services*"]