-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (147 loc) · 4.63 KB
/
Copy pathpyproject.toml
File metadata and controls
166 lines (147 loc) · 4.63 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[build-system]
requires = ["hatchling>=1.19.0"]
build-backend = "hatchling.build"
[project]
name = "dagster-open-platform"
version = "0.0.1"
requires-python = ">=3.12,<3.14"
dependencies = [
"boto3",
"dbt-core==1.11.1",
"dbt-snowflake==1.11.1",
"dagster>=1.12.17",
"dagster-dg-cli",
"dagster-cloud",
"dagster-cloud-cli",
"dagster-webserver",
"dagster-graphql",
"dagster-pipes",
# integrations
"dagster-aws",
"dagster-dbt>=0.28.17", # without this resolver can backtrack
"dagster-dlt",
"dagster-fivetran",
"dagster-gcp",
"dagster-pandas",
"dagster-shared",
"dagster-slack",
"dagster-sling",
"dagster-snowflake",
"dagster-omni",
# community integrations
"dagster-hightouch",
"dagster-anthropic",
# additional dependencies
"sling==1.5.1",
"statsig",
"gql[requests]",
"dlt[snowflake,duckdb]==1.11.0",
"protobuf==6.33.4",
"pydantic",
"pyyaml",
"pyOpenSSL>=23.0.0", # https://dagsterlabs.slack.com/archives/C082K86U53Q/p1732735564080519
"snowflake-connector-python[secure-local-storage,pandas]",
"psycopg2-binary",
"scoutos",
"psutil>=7.0.0",
"certifi==2025.1.31",
"scikit-learn",
"shap>=0.47.0",
"xgboost",
"sling-mac-arm64; sys_platform == 'darwin'",
"sling-linux-amd64; sys_platform == 'linux' and platform_machine == 'x86_64'",
"sling-linux-arm64; sys_platform == 'linux' and platform_machine == 'aarch64'",
"google-api-python-client",
"deepdiff>=8.6.1", # https://github.com/dagster-io/internal/security/dependabot/609
"urllib3>=2.6.3",
"aiohttp>=3.13.3",
"pyasn1>=0.6.2",
"filelock>=3.20.3",
]
[project.optional-dependencies]
dev = [
"click",
"pytest",
"sqlfluff>=3",
"sqlfluff-templater-dbt",
"sprocketship",
]
tests = [
"mock>=5.2.0",
"pytest",
"responses",
"syrupy",
"pytest-rerunfailures",
# dlt 1.11.0 imports `pkg_resources` (from setuptools) without declaring it
# as a dep. The constraint below pins the version because setuptools 82+
# removed `pkg_resources`; we still need it explicitly installed in the
# tox env since `uv pip install` doesn't seed setuptools into the venv.
"setuptools<82",
]
# setuptools 82 removed pkg_resources, breaking third-party deps that still use it
# at build time (flatdict via sprocketship->absql) or runtime. Pin until they migrate.
# numpy<2.5: numba has no numpy 2.5-compatible release yet (every numba release
# through 0.66.0rc1 caps numpy at <2.5 per
# https://numba.readthedocs.io/en/latest/user/installing.html), so once numpy 2.5.0
# shipped (2026-06-21, https://github.com/numpy/numpy/releases/tag/v2.5.0) an
# unpinned resolve backtracks numba/llvmlite (via shap) to ancient versions that
# fail to build on Python 3.12. Drop once numba supports numpy 2.5.
[tool.uv]
exclude-newer = "48h"
constraint-dependencies = ["setuptools<82", "numpy<2.5"]
build-constraint-dependencies = ["setuptools<82"]
# Override flatdict version to avoid build issues with 4.0.1
# flatdict 4.0.1 has a broken build system that doesn't declare setuptools as a build dependency
# Pin to 4.0.0 which might have proper build system
override-dependencies = ["flatdict==4.0.0"]
# ########################
# ##### DAGSTER
# ########################
[tool.dg]
directory_type = "project"
[tool.dg.project]
root_module = "dagster_open_platform"
registry_modules = [
"dagster_open_platform.lib.*",
]
[tool.dg.cli]
suppress_warnings = [
"project_and_activated_venv_mismatch",
]
# ########################
# ##### SQLFLUFF
# ########################
[tool.sqlfluff.core]
templater = "dbt"
dialect = "snowflake"
exclude_rules = [
"aliasing.unique.column",
"ambiguous.column_count",
"structure.column_order",
"structure.using",
"references.consistent",
"references.qualification",
]
max_line_length = 100
nocolor = true
# Warn on the use of keywords as identifiers
warnings = "RF04"
large_file_skip_byte_limit = 35000
[tool.sqlfluff.templater.dbt]
project_dir = "./dagster_open_platform_dbt"
profiles_dir = "./dagster_open_platform_dbt"
[tool.sqlfluff.templater.jinja]
apply_dbt_builtins = true
load_macros_from_path = "./dagster_open_platform_dbt/macros"
[tool.sqlfluff.indentation]
tab_space_size = 4
[tool.sqlfluff.rules.capitalisation.keywords]
capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.identifiers]
capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.functions]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.literals]
capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.types]
extended_capitalisation_policy = "lower"