-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathpyproject.toml
More file actions
294 lines (251 loc) · 7.91 KB
/
pyproject.toml
File metadata and controls
294 lines (251 loc) · 7.91 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# (C) 2021 GoodData Corporation
[project]
name = "gooddata-python-sdk-workspace"
version = "1.60.0"
description = "GoodData Python SDK Workspace"
requires-python = ">=3.10"
dependencies = [
"gooddata-sdk",
"gooddata-pandas",
"gooddata-dbt",
"gooddata-fdw",
"gooddata-flight-server",
"gooddata-flexconnect",
"gooddata-api-client",
"gooddata-pipelines",
"tests-support",
]
[tool.uv]
required-version = "~=0.10.0"
[tool.uv.sources]
gooddata-sdk = { workspace = true }
gooddata-pandas = { workspace = true }
gooddata-dbt = { workspace = true }
gooddata-fdw = { workspace = true }
gooddata-flight-server = { workspace = true }
gooddata-flexconnect = { workspace = true }
gooddata-pipelines = { workspace = true }
tests-support = { workspace = true }
gooddata-api-client = { path = "gooddata-api-client", editable = true }
[tool.uv.workspace]
# note gooddata-api-client is not a workspace package, it is a dependency of other packages
members = ["packages/*"]
[dependency-groups]
dev = [
"pre-commit~=4.0.1",
"gitlint~=0.19.1",
]
lint = [
"ruff~=0.15.1",
]
type = [
"ty~=0.0.14",
]
test = [
# Common test dependencies used across all workspace packages
"pytest~=8.3.4",
"pytest-cov~=6.0.0",
"pytest-json-report==1.5.0",
# Additional test dependencies used by multiple packages
"pytest-snapshot==0.9.0",
"pytest-order~=1.3.0",
"vcrpy~=8.0.0",
"urllib3~=2.6.0",
"python-dotenv~=1.0.0",
"deepdiff~=8.5.0",
"pytest-mock>=3.14.0",
# Package-specific dependencies (only needed by some packages)
# but included here for convenience when working on the full workspace
"moto>=5.1.6",
"orjson>=3.11.3",
]
release = [
"tbump~=6.11.0",
"tomlkit>=0.11"
]
tox = [
"tox~=4.32.0",
"tox-uv~=1.29.0"
]
[tool.ruff]
exclude = [
".git",
".venv",
"__pycache__",
".tox",
"build",
"dist",
"gooddata-api-client",
]
line-length = 120
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PERF", # perflint
"PIE",
"PLR0402", # prevent unnecessary manual import aliases
"PLR1711", # prevent useless returns
"SIM",
"UP",
"W", # pycodestyle warnings
"D417", # undocumented-param
]
lint.ignore = [
# rules recommended to be ignored when using ruff format
"E501",
"W191",
# ignore the rule banning Optional[X] in favor of X | None, we are fine with Optional for now
"UP007",
# ignore the rule, because it presents non-zero perf cost
"SIM105",
# ignore the rule (import from `collections.abc` instead: `Callable`)
"UP035",
]
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
"packages/gooddata-pandas/src/gooddata_pandas/__init__.py" = ["F401"]
"packages/gooddata-sdk/src/gooddata_sdk/*/__init__.py" = ["F401"]
"packages/gooddata-sdk/src/gooddata_sdk/__init__.py" = ["F401"]
"packages/gooddata-dbt/src/gooddata_dbt/__init__.py" = ["F401"]
"packages/gooddata-fdw/src/gooddata_fdw/__init__.py" = ["F401"]
"packages/gooddata-flight-server/src/gooddata_flight_server/__init__.py" = ["F401"]
"packages/gooddata-flexconnect/src/gooddata_flexconnect/__init__.py" = ["F401"]
[tool.ruff.format]
exclude = ['(gooddata-api-client|.*\.snapshot\..*)']
# use ruff to format code examples in docstrings as well
docstring-code-format = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ty.environment]
# Ignore missing imports for external packages without type stubs
extra-paths = []
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
# github_url = "https://github.com/<user or organization>/<project>/"
[tool.tbump.version]
current = "1.60.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
((a(?P<alpha>\d+))?
|
(\.dev(?P<dev>\d+))?)
'''
[[tool.tbump.field]]
name = "alpha"
default = ""
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
# root workspace pyproject.toml
src = "pyproject.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
# clients setup.py
src = "gooddata-*-client/setup.py"
search = "VERSION = \"{current_version}\""
[[tool.tbump.file]]
# fdw pyproject.toml
src = "packages/gooddata-fdw/pyproject.toml"
search = "version = \"{current_version}\""
[[tool.tbump.file]]
# fdw pyproject.toml dependency
src = "packages/gooddata-fdw/pyproject.toml"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# pandas pyproject.toml
src = "packages/gooddata-pandas/pyproject.toml"
search = "version = \"{current_version}\""
[[tool.tbump.file]]
# pandas pyproject.toml dependency
src = "packages/gooddata-pandas/pyproject.toml"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# sdk pyproject.toml
src = "packages/gooddata-sdk/pyproject.toml"
search = "version = \"{current_version}\""
[[tool.tbump.file]]
# sdk pyproject.toml dependency
src = "packages/gooddata-sdk/pyproject.toml"
search = "gooddata-.*-client~={current_version}"
[[tool.tbump.file]]
# dbt pyproject.toml
src = "packages/gooddata-dbt/pyproject.toml"
search = "version = \"{current_version}\""
[[tool.tbump.file]]
# dbt pyproject.toml dependency
src = "packages/gooddata-dbt/pyproject.toml"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# gooddata-flight-server pyproject.toml
src = "packages/gooddata-flight-server/pyproject.toml"
search = "version = \"{current_version}\""
[[tool.tbump.file]]
# gooddata-flexconnect pyproject.toml
src = "packages/gooddata-flexconnect/pyproject.toml"
search = "version = \"{current_version}\""
[[tool.tbump.file]]
# gooddata-flexconnect pyproject.toml dependency
src = "packages/gooddata-flexconnect/pyproject.toml"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# gooddata-flexconnect pyproject.toml dependency
src = "packages/gooddata-flexconnect/pyproject.toml"
search = "gooddata-flight-server~={current_version}"
[[tool.tbump.file]]
# clients README
src = "gooddata-*-client/README.md"
[[tool.tbump.file]]
# clients user agent
src = "gooddata-*-client/gooddata_*_client/api_client.py"
[[tool.tbump.file]]
# clients config
src = "gooddata-*-client/gooddata_*_client/configuration.py"
[[tool.tbump.file]]
# clients __init__.py
src = "gooddata-*-client/gooddata_*_client/__init__.py"
[[tool.tbump.file]]
# clients generator configs
src = ".openapi-generator/configs/gooddata-*-client.yaml"
[[tool.tbump.file]]
src = "packages/gooddata-sdk/pyproject.toml"
search = 'Documentation = "https://www.gooddata.com/docs/python-sdk/{current_version}"'
[[tool.tbump.file]]
src = "packages/gooddata-sdk/README.md"
search = "https://www.gooddata.com/docs/python-sdk/{current_version}"
[[tool.tbump.file]]
src = "packages/gooddata-pandas/pyproject.toml"
search = 'Documentation = "https://gooddata-pandas.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
src = "packages/gooddata-fdw/pyproject.toml"
search = 'Documentation = "https://gooddata-fdw.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
src = "packages/gooddata-flight-server/pyproject.toml"
search = 'Documentation = "https://gooddata-flight-server.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
src = "packages/gooddata-flexconnect/pyproject.toml"
search = 'Documentation = "https://gooddata-flexconnect.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
# gooddata-pipelines version
src = "packages/gooddata-pipelines/pyproject.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
# gooddata-sdk version in gooddata-pipelines dependencies
src = "packages/gooddata-pipelines/pyproject.toml"
search = "gooddata-sdk~={current_version}"
# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made
# [[tool.tbump.before_commit]]
# name = "check changelog"
# cmd = "grep -q {new_version} Changelog.rst"
# Or run some commands after the git tag and the branch
# have been pushed:
# [[tool.tbump.after_push]]
# name = "publish"
# cmd = "./publish.sh"