-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (95 loc) · 3.39 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (95 loc) · 3.39 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
97
98
99
100
101
102
103
104
105
106
[project]
name = "stratifio-core"
version = "0.41.2"
description = "stratif.io Analytics — open source self-hostable analytics dashboard backend"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
dependencies = [
"fastapi>=0.104.0",
"duckdb>=0.9.0",
"uvicorn[standard]>=0.24.0",
"sqlglot>=28.0.0",
"pydantic-settings>=2.0.0",
"cryptography>=41.0.0",
"httpx>=0.27.0",
"structlog>=24.0.0",
"starlette>=0.52.1",
"pydantic>=2.12.5",
"databricks-sql-connector>=4.2.5",
"psycopg2-binary>=2.9.11",
"clickhouse-connect>=0.14.1",
"scalar-fastapi>=1.8.1",
"slowapi>=0.1.9",
"sqlalchemy[asyncio]>=2.0.0",
"aiosqlite>=0.20.0",
"asyncpg>=0.29.0",
"holidays>=0.50",
"pyyaml>=6.0",
]
[project.optional-dependencies]
snowflake = ["snowflake-connector-python>=3.0.0"]
clickhouse = ["clickhouse-connect>=0.7.0"]
[project.scripts]
serve = "services.analytics.main:main"
seed-duckdb = "services.event_simulator.seeder_duckdb:main"
seed-duckdb-fr = "services.event_simulator.seeder_duckdb_fr:main"
seed-sqlite = "services.event_simulator.seeder_sqlite:main"
seed-postgres = "services.event_simulator.seeder_postgresql:main"
seed-clickhouse = "services.event_simulator.seeder_clickhouse:main"
seed-snowflake = "services.event_simulator.seeder_snowflake:main"
seed-databricks = "services.event_simulator.seeder_databricks:main"
bootstrap-all-connections = "services.event_simulator.bootstrap_all_connections:main"
seed = "services.event_simulator.cli:main"
simulator-serve = "services.event_simulator.server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["services"]
[tool.hatch.build.targets.sdist]
exclude = ["db/"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = [
"integration: marks tests that require a real external database connection (deselect with '-m not integration')",
"e2e: marks self-bootstrapping end-to-end tests — credentials come from services/analytics/tests/e2e/connections.yaml (deselect with '-m not e2e')",
"deterministic: marks all deterministic golden-file tests (deselect with '-m not deterministic')",
"deterministic_duckdb: deterministic tests for the DuckDB backend",
"deterministic_sqlite: deterministic tests for the SQLite backend",
"deterministic_pg: deterministic tests for the PostgreSQL backend",
"deterministic_ch: deterministic tests for the ClickHouse backend",
"deterministic_sf: deterministic tests for the Snowflake backend",
"deterministic_db: deterministic tests for the Databricks backend",
]
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pyyaml>=6.0",
"ruff>=0.15.2",
"ty>=0.0.17",
"testcontainers[clickhouse,postgres]>=4.8",
"fakesnow>=0.9.0",
"pytest-asyncio>=0.24.0",
]
[tool.ruff]
target-version = "py311" # Your Python version
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes (unused imports, undefined names)
"I", # isort (import sorting)
"UP", # pyupgrade (modern Python syntax)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = ["E501"] # Line too long (handled by formatter)
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"