srdp 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
srdp-0.3.0/PKG-INFO ADDED
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.3
2
+ Name: srdp
3
+ Version: 0.3.0
4
+ Summary: Single Repo Data Platform: a composable, self-hostable data stack
5
+ Author: Yannick Vinkesteijn
6
+ License: Apache-2.0
7
+ Requires-Dist: dagster>=1.12.17
8
+ Requires-Dist: polars>=1.32.3
9
+ Requires-Dist: fastapi>=0.115.0 ; extra == 'api'
10
+ Requires-Dist: uvicorn[standard]>=0.32.0 ; extra == 'api'
11
+ Requires-Dist: httpx>=0.27.0 ; extra == 'api'
12
+ Requires-Dist: azure-identity>=1.25.0 ; extra == 'azure'
13
+ Requires-Dist: azure-storage-blob>=12.28.0 ; extra == 'azure'
14
+ Requires-Dist: dagster-postgres>=0.28.17 ; extra == 'dagster-postgres'
15
+ Requires-Dist: dagster-dbt>=0.29.20 ; extra == 'dbt'
16
+ Requires-Dist: dbt-duckdb>=1.11.0 ; extra == 'dbt'
17
+ Requires-Dist: duckdb>=1.4.0 ; extra == 'ducklake'
18
+ Requires-Dist: psycopg2-binary>=2.9.0 ; extra == 'ducklake'
19
+ Requires-Dist: pydantic-settings>=2.9.0 ; extra == 'ducklake'
20
+ Requires-Dist: pyarrow>=23.0.0 ; extra == 'ducklake'
21
+ Requires-Dist: dagster-k8s>=0.28.17 ; extra == 'infra'
22
+ Requires-Dist: dagster-postgres>=0.28.17 ; extra == 'infra'
23
+ Requires-Dist: dagster-webserver>=1.12.17 ; extra == 'infra'
24
+ Requires-Dist: dagster-graphql>=1.12.17 ; extra == 'infra'
25
+ Requires-Dist: openlineage-python>=1.53.0 ; extra == 'openlineage'
26
+ Requires-Python: >=3.12, <3.13
27
+ Project-URL: Homepage, https://srdphub.com
28
+ Project-URL: Repository, https://github.com/srdp-hub/srdp
29
+ Project-URL: Issues, https://github.com/srdp-hub/srdp/issues
30
+ Project-URL: Documentation, https://docs.srdphub.com
31
+ Provides-Extra: api
32
+ Provides-Extra: azure
33
+ Provides-Extra: dagster-postgres
34
+ Provides-Extra: dbt
35
+ Provides-Extra: ducklake
36
+ Provides-Extra: infra
37
+ Provides-Extra: openlineage
38
+ Description-Content-Type: text/markdown
39
+
40
+ # The Single Repo Data Platform (SRDP)
41
+
42
+ > _aka the serendipitous data platform_
43
+
44
+ Because your data stack shouldn't require a PhD in Kubernetes and a second mortgage.
45
+
46
+ Welcome, weary data traveler. You've stumbled upon something serendipitous, a quixotic quest to build a sane, powerful, and actually usable data platform from the best open-source components we can find. All from the comfort of a single Git repository.[^1]
47
+
48
+ What's the big idea? To stop gluing together 87 different services with YAML, duct tape, and desperate Stack Overflow searches at 3 AM. We're assembling a dream team of data tools that play nicely together, so you can spend less time wrangling infrastructure and more time doing... well, whatever it is you data people do. Probably making fancy charts.
49
+
50
+ [^1]: We take inspiration from [Instant OpenHIE](https://openhie.github.io/instant/) project who have done the same for open source health information exchange platforms.
51
+ ---
52
+
53
+ ## The Dream Team: Our All-Star Roster
54
+ We didn't just pick these tools out of a hat. Okay, maybe a little. But mostly, we chose them because they're fast, modern, and don't make us want to throw our laptops out the window. Think of them as the Avengers of the data world, if the Avengers were less about smashing aliens and more about smashing GROUP BY queries.
55
+
56
+ Here's the lineup of our chosen champions:
57
+
58
+ | Component | Role in the SRDP | Our Unsolicited Opinion |
59
+ |:---|:---|:---|
60
+ | Zitadel |The Bouncer / Identity & Access Management | Manages who gets to touch the precious data. Because "SELECT * FROM users;" should require more than just a password of password123. |
61
+ | Traefik |The Traffic Cop / Cloud Native Proxy | Directs all the incoming requests so services don't crash into each other. It's the only traffic jam you'll actually enjoy.|
62
+ | Polars |The Speed Demon / Dataframe Library | It's like pandas, but it actually uses all your CPU cores and doesn't take a coffee break on df.groupby(). Written in Rust, because of course it is.|
63
+ | DuckDB |The Pocket Rocket / In-Process OLAP DB | An incredibly fast analytical database that runs inside your application. It's the power of a warehouse in the body of a library. Quack-tastic!|
64
+ | Dagster |The Conductor / Data Orchestrator | The sensible, type-aware adult in the room of chaotic data pipelines. It knows what your data assets are and helps you not set the whole factory on fire.|
65
+ | dlt-hub |The Plumber / Data Loading Library | Gets your data from "over there" to "right here" with surprisingly little fuss. Turns messy APIs into clean tables faster than you can say "ETL is dead".|
66
+ | dbt | The Transformer / Data Transformation Tool | The "T" in ELT that everyone's talking about. It turns your analysts into data engineering heroes with the power of SELECT statements and Jinja.|
67
+ | marimo |The Mad Scientist's Notebook | A next-gen reactive Python notebook. Change one cell, and the whole notebook updates. It's like magic, but with fewer rabbits and more legible code.|
68
+ | Quarto |The Storyteller / Scientific Publishing | Turns your brilliant analysis into beautiful reports, presentations, and websites. Because data that isn't shared is just sad, lonely numbers.|
69
+
70
+ ---
71
+
72
+ ## Deployment Targets
73
+
74
+ SRDP ships deployment scripts for two targets.
75
+
76
+ ### Docker Compose
77
+
78
+ Located in `deploy/docker/`, this stack runs SRDP via Docker compose, but without Dagster. This was the first iteration of SRDP, focusing on the integration of Traefik and Zitadel.
79
+
80
+ | File | Purpose |
81
+ |:---|:---|
82
+ | `deploy/docker/docker-compose.yml` | Main Compose definition for all services |
83
+ | `deploy/docker/docker-compose.override.yml` | Local TLS: mounts self-signed mkcert certificates into Traefik |
84
+ | `deploy/docker/docker-compose.prod.yml` | Production override: switches Traefik to Let's Encrypt ACME for TLS |
85
+ | `deploy/docker/.env.example` | Template for required environment variables (secrets, OIDC client config) |
86
+ | `config/traefik/traefik.yml` | Traefik static configuration (entrypoints, TLS, ACME, dashboard) |
87
+
88
+ An OpenTofu script is provided in `deploy/opentofu/gcp/` to deploy this Docker
89
+ Compose stack to a **Google Cloud Compute Engine** VM. It provisions a Debian
90
+ `e2-medium` instance with a static IP and firewall rules for ports 80 and 443,
91
+ then bootstraps Docker and Docker Compose via a startup script that clones the
92
+ repository, injects secrets, and starts the production Compose stack with
93
+ Let's Encrypt TLS.
94
+
95
+ ### Kubernetes + OpenTofu
96
+
97
+ Located in `deploy/kubernetes/`, this target deploys the full platform on a managed
98
+ Kubernetes cluster. Infrastructure is provisioned with [OpenTofu](https://opentofu.org/);
99
+ applications are deployed via a Helm umbrella chart.
100
+
101
+ | Directory / File | Purpose |
102
+ |:---|:---|
103
+ | `deploy/opentofu/scaleway/` | OpenTofu configuration to provision a **Scaleway Kapsule** managed Kubernetes cluster, VPC, autoscaling node pool, and container registry |
104
+ | `deploy/kubernetes/srdp-chart/` | Helm umbrella chart bundling Traefik, Zitadel, PostgreSQL, OAuth2-Proxy, and Dagster as upstream dependencies, plus custom templates for Marimo, Quarto, and TLS certificate bootstrapping |
105
+ | `projects/cbs-example/` | Dagster user code deployment (assets, jobs, schedules) built as a separate container image |
106
+
107
+ A `Justfile` at the repository root provides convenience commands for both targets:
108
+
109
+ ```bash
110
+ just local-deploy # Deploy to a local Kubernetes cluster (e.g. kind/k3s)
111
+ just prod-full # Full production deploy on Scaleway
112
+ just prod-apply # Provision Scaleway infrastructure with OpenTofu
113
+ ```
114
+
115
+ ---
116
+
117
+ ## Documentation
118
+
119
+ Full documentation is available at **[srdp-hub.github.io/srdp](https://srdp-hub.github.io/srdp/)**.
120
+
121
+ **Preview locally:**
122
+ ```bash
123
+ uvx zensical serve
124
+ ```
125
+ Opens the site at `localhost:8000` with live reload.
126
+
127
+ **Deployment:**
128
+ Documentation is built with [Zensical](https://zensical.org/) and deployed automatically to GitHub Pages on every push to `main` via the [Build and deploy Documentation](.github/workflows/docs.yml) GitHub Actions workflow.
129
+
130
+ ---
131
+
132
+ ![](./docs/images/architecture.png)
srdp-0.3.0/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # The Single Repo Data Platform (SRDP)
2
+
3
+ > _aka the serendipitous data platform_
4
+
5
+ Because your data stack shouldn't require a PhD in Kubernetes and a second mortgage.
6
+
7
+ Welcome, weary data traveler. You've stumbled upon something serendipitous, a quixotic quest to build a sane, powerful, and actually usable data platform from the best open-source components we can find. All from the comfort of a single Git repository.[^1]
8
+
9
+ What's the big idea? To stop gluing together 87 different services with YAML, duct tape, and desperate Stack Overflow searches at 3 AM. We're assembling a dream team of data tools that play nicely together, so you can spend less time wrangling infrastructure and more time doing... well, whatever it is you data people do. Probably making fancy charts.
10
+
11
+ [^1]: We take inspiration from [Instant OpenHIE](https://openhie.github.io/instant/) project who have done the same for open source health information exchange platforms.
12
+ ---
13
+
14
+ ## The Dream Team: Our All-Star Roster
15
+ We didn't just pick these tools out of a hat. Okay, maybe a little. But mostly, we chose them because they're fast, modern, and don't make us want to throw our laptops out the window. Think of them as the Avengers of the data world, if the Avengers were less about smashing aliens and more about smashing GROUP BY queries.
16
+
17
+ Here's the lineup of our chosen champions:
18
+
19
+ | Component | Role in the SRDP | Our Unsolicited Opinion |
20
+ |:---|:---|:---|
21
+ | Zitadel |The Bouncer / Identity & Access Management | Manages who gets to touch the precious data. Because "SELECT * FROM users;" should require more than just a password of password123. |
22
+ | Traefik |The Traffic Cop / Cloud Native Proxy | Directs all the incoming requests so services don't crash into each other. It's the only traffic jam you'll actually enjoy.|
23
+ | Polars |The Speed Demon / Dataframe Library | It's like pandas, but it actually uses all your CPU cores and doesn't take a coffee break on df.groupby(). Written in Rust, because of course it is.|
24
+ | DuckDB |The Pocket Rocket / In-Process OLAP DB | An incredibly fast analytical database that runs inside your application. It's the power of a warehouse in the body of a library. Quack-tastic!|
25
+ | Dagster |The Conductor / Data Orchestrator | The sensible, type-aware adult in the room of chaotic data pipelines. It knows what your data assets are and helps you not set the whole factory on fire.|
26
+ | dlt-hub |The Plumber / Data Loading Library | Gets your data from "over there" to "right here" with surprisingly little fuss. Turns messy APIs into clean tables faster than you can say "ETL is dead".|
27
+ | dbt | The Transformer / Data Transformation Tool | The "T" in ELT that everyone's talking about. It turns your analysts into data engineering heroes with the power of SELECT statements and Jinja.|
28
+ | marimo |The Mad Scientist's Notebook | A next-gen reactive Python notebook. Change one cell, and the whole notebook updates. It's like magic, but with fewer rabbits and more legible code.|
29
+ | Quarto |The Storyteller / Scientific Publishing | Turns your brilliant analysis into beautiful reports, presentations, and websites. Because data that isn't shared is just sad, lonely numbers.|
30
+
31
+ ---
32
+
33
+ ## Deployment Targets
34
+
35
+ SRDP ships deployment scripts for two targets.
36
+
37
+ ### Docker Compose
38
+
39
+ Located in `deploy/docker/`, this stack runs SRDP via Docker compose, but without Dagster. This was the first iteration of SRDP, focusing on the integration of Traefik and Zitadel.
40
+
41
+ | File | Purpose |
42
+ |:---|:---|
43
+ | `deploy/docker/docker-compose.yml` | Main Compose definition for all services |
44
+ | `deploy/docker/docker-compose.override.yml` | Local TLS: mounts self-signed mkcert certificates into Traefik |
45
+ | `deploy/docker/docker-compose.prod.yml` | Production override: switches Traefik to Let's Encrypt ACME for TLS |
46
+ | `deploy/docker/.env.example` | Template for required environment variables (secrets, OIDC client config) |
47
+ | `config/traefik/traefik.yml` | Traefik static configuration (entrypoints, TLS, ACME, dashboard) |
48
+
49
+ An OpenTofu script is provided in `deploy/opentofu/gcp/` to deploy this Docker
50
+ Compose stack to a **Google Cloud Compute Engine** VM. It provisions a Debian
51
+ `e2-medium` instance with a static IP and firewall rules for ports 80 and 443,
52
+ then bootstraps Docker and Docker Compose via a startup script that clones the
53
+ repository, injects secrets, and starts the production Compose stack with
54
+ Let's Encrypt TLS.
55
+
56
+ ### Kubernetes + OpenTofu
57
+
58
+ Located in `deploy/kubernetes/`, this target deploys the full platform on a managed
59
+ Kubernetes cluster. Infrastructure is provisioned with [OpenTofu](https://opentofu.org/);
60
+ applications are deployed via a Helm umbrella chart.
61
+
62
+ | Directory / File | Purpose |
63
+ |:---|:---|
64
+ | `deploy/opentofu/scaleway/` | OpenTofu configuration to provision a **Scaleway Kapsule** managed Kubernetes cluster, VPC, autoscaling node pool, and container registry |
65
+ | `deploy/kubernetes/srdp-chart/` | Helm umbrella chart bundling Traefik, Zitadel, PostgreSQL, OAuth2-Proxy, and Dagster as upstream dependencies, plus custom templates for Marimo, Quarto, and TLS certificate bootstrapping |
66
+ | `projects/cbs-example/` | Dagster user code deployment (assets, jobs, schedules) built as a separate container image |
67
+
68
+ A `Justfile` at the repository root provides convenience commands for both targets:
69
+
70
+ ```bash
71
+ just local-deploy # Deploy to a local Kubernetes cluster (e.g. kind/k3s)
72
+ just prod-full # Full production deploy on Scaleway
73
+ just prod-apply # Provision Scaleway infrastructure with OpenTofu
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Documentation
79
+
80
+ Full documentation is available at **[srdp-hub.github.io/srdp](https://srdp-hub.github.io/srdp/)**.
81
+
82
+ **Preview locally:**
83
+ ```bash
84
+ uvx zensical serve
85
+ ```
86
+ Opens the site at `localhost:8000` with live reload.
87
+
88
+ **Deployment:**
89
+ Documentation is built with [Zensical](https://zensical.org/) and deployed automatically to GitHub Pages on every push to `main` via the [Build and deploy Documentation](.github/workflows/docs.yml) GitHub Actions workflow.
90
+
91
+ ---
92
+
93
+ ![](./docs/images/architecture.png)
@@ -0,0 +1,182 @@
1
+ [project]
2
+ name = "srdp"
3
+ version = "0.3.0"
4
+ description = "Single Repo Data Platform: a composable, self-hostable data stack"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12,<3.13"
7
+ dependencies = [
8
+ "dagster>=1.12.17",
9
+ "polars>=1.32.3",
10
+ ]
11
+
12
+ [project.license]
13
+ text = "Apache-2.0"
14
+
15
+ [[project.authors]]
16
+ name = "Yannick Vinkesteijn"
17
+
18
+ [project.optional-dependencies]
19
+ infra = [
20
+ "dagster-k8s>=0.28.17",
21
+ "dagster-postgres>=0.28.17",
22
+ "dagster-webserver>=1.12.17",
23
+ "dagster-graphql>=1.12.17",
24
+ ]
25
+ dagster-postgres = ["dagster-postgres>=0.28.17"]
26
+ ducklake = [
27
+ "duckdb>=1.4.0",
28
+ "psycopg2-binary>=2.9.0",
29
+ "pydantic-settings>=2.9.0",
30
+ "pyarrow>=23.0.0",
31
+ ]
32
+ openlineage = ["openlineage-python>=1.53.0"]
33
+ api = [
34
+ "fastapi>=0.115.0",
35
+ "uvicorn[standard]>=0.32.0",
36
+ "httpx>=0.27.0",
37
+ ]
38
+ azure = [
39
+ "azure-identity>=1.25.0",
40
+ "azure-storage-blob>=12.28.0",
41
+ ]
42
+ dbt = [
43
+ "dagster-dbt>=0.29.20",
44
+ "dbt-duckdb>=1.11.0",
45
+ ]
46
+
47
+ [project.urls]
48
+ Homepage = "https://srdphub.com"
49
+ Repository = "https://github.com/srdp-hub/srdp"
50
+ Issues = "https://github.com/srdp-hub/srdp/issues"
51
+ Documentation = "https://docs.srdphub.com"
52
+
53
+ [dependency-groups]
54
+ lint = [
55
+ "ruff>=0.15.0",
56
+ "ty>=0.0.15",
57
+ "pre-commit>=4.0.0",
58
+ ]
59
+ test = [
60
+ "pytest>=9.0.0",
61
+ "pytest-cov>=6.0.0",
62
+ ]
63
+ security = ["uv-secure>=0.15.4"]
64
+
65
+ [[dependency-groups.dev]]
66
+ include-group = "lint"
67
+
68
+ [[dependency-groups.dev]]
69
+ include-group = "test"
70
+
71
+ [[dependency-groups.dev]]
72
+ include-group = "security"
73
+
74
+ [build-system]
75
+ requires = ["uv_build>=0.11.28,<0.12.0"]
76
+ build-backend = "uv_build"
77
+
78
+ [tool.ruff]
79
+ line-length = 120
80
+ target-version = "py312"
81
+ fix = true
82
+ src = [
83
+ "src",
84
+ "projects",
85
+ ]
86
+ exclude = [
87
+ "docs/",
88
+ "services/",
89
+ "deploy/",
90
+ ]
91
+
92
+ [tool.ruff.lint]
93
+ select = ["ALL"]
94
+ ignore = [
95
+ "COM812",
96
+ "ISC001",
97
+ "D203",
98
+ "D213",
99
+ "E501",
100
+ "TD002",
101
+ "TD003",
102
+ "FIX002",
103
+ "TRY003",
104
+ "SIM102",
105
+ "SIM108",
106
+ ]
107
+ fixable = ["ALL"]
108
+
109
+ [tool.ruff.lint.pydocstyle]
110
+ convention = "google"
111
+
112
+ [tool.ruff.lint.isort]
113
+ known-first-party = [
114
+ "srdp",
115
+ "etl",
116
+ ]
117
+
118
+ [tool.ruff.lint.flake8-tidy-imports]
119
+ ban-relative-imports = "all"
120
+
121
+ [tool.ruff.lint.flake8-type-checking]
122
+ strict = true
123
+
124
+ [tool.ruff.lint.per-file-ignores]
125
+ "tests/**/*.py" = [
126
+ "S101",
127
+ "S608",
128
+ "D100",
129
+ "D103",
130
+ "D104",
131
+ "ANN",
132
+ "INP001",
133
+ "PLR2004",
134
+ "PLR0913",
135
+ "SLF001",
136
+ "ARG001",
137
+ "PLC0415",
138
+ ]
139
+ "projects/**/*.py" = ["INP001"]
140
+ "**/notebooks/*.py" = [
141
+ "N807",
142
+ "ANN001",
143
+ "ANN202",
144
+ "B018",
145
+ "PLC0415",
146
+ "N806",
147
+ "N803",
148
+ "PLR0913",
149
+ ]
150
+
151
+ [tool.ruff.format]
152
+ quote-style = "double"
153
+ docstring-code-format = true
154
+
155
+ [tool.ty.src]
156
+ exclude = [
157
+ "projects/",
158
+ "services/",
159
+ ]
160
+
161
+ [tool.ty.environment]
162
+ python-version = "3.12"
163
+
164
+ [tool.ty.rules]
165
+ unused-ignore-comment = "warn"
166
+ invalid-return-type = "error"
167
+ invalid-argument-type = "error"
168
+ division-by-zero = "error"
169
+ redundant-cast = "warn"
170
+ invalid-method-override = "warn"
171
+
172
+ [tool.pytest.ini_options]
173
+ testpaths = ["tests"]
174
+ addopts = [
175
+ "-ra",
176
+ "-q",
177
+ "--strict-config",
178
+ "--strict-markers",
179
+ "--import-mode=importlib",
180
+ ]
181
+ xfail_strict = true
182
+ filterwarnings = ["error"]
@@ -0,0 +1,184 @@
1
+ [project]
2
+ name = "srdp"
3
+ version = "0.3.0"
4
+ description = "Single Repo Data Platform: a composable, self-hostable data stack"
5
+ license = { text = "Apache-2.0" }
6
+ authors = [
7
+ { name = "Yannick Vinkesteijn" },
8
+ ]
9
+ readme = "README.md"
10
+ requires-python = ">=3.12,<3.13"
11
+ dependencies = [
12
+ "dagster>=1.12.17",
13
+ "polars>=1.32.3",
14
+ ]
15
+
16
+ [project.optional-dependencies]
17
+ infra = [
18
+ "dagster-k8s>=0.28.17",
19
+ "dagster-postgres>=0.28.17",
20
+ "dagster-webserver>=1.12.17",
21
+ "dagster-graphql>=1.12.17",
22
+ ]
23
+ dagster-postgres = [
24
+ "dagster-postgres>=0.28.17",
25
+ ]
26
+ ducklake = [
27
+ "duckdb>=1.4.0",
28
+ "psycopg2-binary>=2.9.0",
29
+ "pydantic-settings>=2.9.0",
30
+ "pyarrow>=23.0.0",
31
+ ]
32
+ openlineage = [
33
+ "openlineage-python>=1.53.0",
34
+ ]
35
+ api = [
36
+ "fastapi>=0.115.0",
37
+ "uvicorn[standard]>=0.32.0",
38
+ "httpx>=0.27.0",
39
+ ]
40
+ azure = [
41
+ "azure-identity>=1.25.0",
42
+ "azure-storage-blob>=12.28.0",
43
+ ]
44
+ dbt = [
45
+ "dagster-dbt>=0.29.20",
46
+ "dbt-duckdb>=1.11.0",
47
+ ]
48
+
49
+ [project.urls]
50
+ Homepage = "https://srdphub.com"
51
+ Repository = "https://github.com/srdp-hub/srdp"
52
+ Issues = "https://github.com/srdp-hub/srdp/issues"
53
+ Documentation = "https://docs.srdphub.com"
54
+
55
+ [dependency-groups]
56
+ dev = [
57
+ { include-group = "lint" },
58
+ { include-group = "test" },
59
+ { include-group = "security" },
60
+ ]
61
+ lint = [
62
+ "ruff>=0.15.0",
63
+ "ty>=0.0.15",
64
+ "pre-commit>=4.0.0",
65
+ ]
66
+ test = [
67
+ "pytest>=9.0.0",
68
+ "pytest-cov>=6.0.0",
69
+ ]
70
+ security = [
71
+ "uv-secure>=0.15.4",
72
+ ]
73
+
74
+ [build-system]
75
+ requires = ["uv_build>=0.11.28,<0.12.0"]
76
+ build-backend = "uv_build"
77
+
78
+ # ---------------------------------------------------------------------------
79
+ # Ruff
80
+ # ---------------------------------------------------------------------------
81
+
82
+ [tool.ruff]
83
+ line-length = 120
84
+ target-version = "py312"
85
+ fix = true
86
+ src = ["src", "projects"]
87
+ exclude = [
88
+ "docs/",
89
+ "services/",
90
+ "deploy/",
91
+ ]
92
+
93
+ [tool.ruff.lint]
94
+ select = ["ALL"]
95
+ ignore = [
96
+ "COM812", # Trailing comma missing — conflicts with ruff formatter
97
+ "ISC001", # Implicit string concat — conflicts with ruff formatter
98
+ "D203", # One blank line before class docstring — conflicts with D211
99
+ "D213", # Multi-line summary on second line — conflicts with D212
100
+ "E501", # Line length regulated by formatter
101
+ "TD002", # Missing author in TODO
102
+ "TD003", # Missing issue link on TODO
103
+ "FIX002", # Line contains TODO
104
+ "TRY003", # Long messages outside exception class
105
+ "SIM102", # Nested if statements
106
+ "SIM108", # Ternary operator
107
+ ]
108
+ fixable = ["ALL"]
109
+
110
+ [tool.ruff.lint.pydocstyle]
111
+ convention = "google"
112
+
113
+ [tool.ruff.lint.isort]
114
+ known-first-party = ["srdp", "etl"]
115
+
116
+ [tool.ruff.lint.flake8-tidy-imports]
117
+ ban-relative-imports = "all"
118
+
119
+ [tool.ruff.lint.flake8-type-checking]
120
+ strict = true
121
+
122
+ [tool.ruff.lint.per-file-ignores]
123
+ "tests/**/*.py" = [
124
+ "S101", # assert in tests
125
+ "S608", # SQL in test assertions
126
+ "D100", "D103", "D104", # docstrings not required in tests
127
+ "ANN", # type annotations not required in tests
128
+ "INP001", # implicit namespace package
129
+ "PLR2004", # magic values in assertions
130
+ "PLR0913", # many fixture arguments
131
+ "SLF001", # private member access
132
+ "ARG001", # unused fixture arguments
133
+ "PLC0415", # inline imports in scoped test helpers
134
+ ]
135
+ "projects/**/*.py" = [
136
+ "INP001", # implicit namespace package
137
+ ]
138
+ "**/notebooks/*.py" = [
139
+ # Marimo's own required syntax, not a style choice: every cell is a function
140
+ # literally named `__`, its dependencies are untyped parameters, its output
141
+ # is a bare trailing expression, and its imports live inside the cell rather
142
+ # than at module level.
143
+ "N807", # dunder cell function names
144
+ "ANN001", "ANN202", # untyped cell parameters/returns
145
+ "B018", # bare expression as cell output
146
+ "PLC0415", # imports inside cell functions
147
+ "N806", "N803", # constants-as-locals/params inside cell functions
148
+ "PLR0913", # cells can have many upstream-cell dependencies
149
+ ]
150
+
151
+ [tool.ruff.format]
152
+ quote-style = "double"
153
+ docstring-code-format = true
154
+
155
+ # ---------------------------------------------------------------------------
156
+ # ty
157
+ # ---------------------------------------------------------------------------
158
+
159
+ [tool.ty.src]
160
+ exclude = [
161
+ "projects/",
162
+ "services/",
163
+ ]
164
+
165
+ [tool.ty.environment]
166
+ python-version = "3.12"
167
+
168
+ [tool.ty.rules]
169
+ unused-ignore-comment = "warn"
170
+ invalid-return-type = "error"
171
+ invalid-argument-type = "error"
172
+ division-by-zero = "error"
173
+ redundant-cast = "warn"
174
+ invalid-method-override = "warn"
175
+
176
+ # ---------------------------------------------------------------------------
177
+ # pytest
178
+ # ---------------------------------------------------------------------------
179
+
180
+ [tool.pytest.ini_options]
181
+ testpaths = ["tests"]
182
+ addopts = ["-ra", "-q", "--strict-config", "--strict-markers", "--import-mode=importlib"]
183
+ xfail_strict = true
184
+ filterwarnings = ["error"]
@@ -0,0 +1 @@
1
+ """SRDP core platform library."""
@@ -0,0 +1 @@
1
+ """Read-only FastAPI surface over the DuckLake catalog and Dagster."""