-
Notifications
You must be signed in to change notification settings - Fork 48
/
pyproject.toml
194 lines (160 loc) · 4.93 KB
/
pyproject.toml
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
# (C) 2021 GoodData Corporation
[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
]
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",
]
target-version = "py39"
[tool.ruff.lint.per-file-ignores]
"gooddata-pandas/gooddata_pandas/__init__.py" = ["F401"]
"gooddata-sdk/gooddata_sdk/*/__init__.py" = ["F401"]
"gooddata-sdk/gooddata_sdk/__init__.py" = ["F401"]
"gooddata-dbt/gooddata_dbt/__init__.py" = ["F401"]
"gooddata-fdw/gooddata_fdw/__init__.py" = ["F401"]
"gooddata-flight-server/gooddata_flight_server/__init__.py" = ["F401"]
"gooddata-flexconnect/gooddata_flexconnect/__init__.py" = ["F401"]
[tool.ruff.format]
exclude = ['(gooddata-api-client|.*\.snapshot\..*)']
[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.33.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]]
# clients setup.py
src = "gooddata-*-client/setup.py"
search = "VERSION = \"{current_version}\""
[[tool.tbump.file]]
# fdw setup.py
src = "gooddata-fdw/setup.py"
search = "version=\"{current_version}\""
[[tool.tbump.file]]
# fdw setup.py dependency
src = "gooddata-fdw/setup.py"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# pandas setup.py
src = "gooddata-pandas/setup.py"
search = "version=\"{current_version}\""
[[tool.tbump.file]]
# pandas setup.py dependency
src = "gooddata-pandas/setup.py"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# sdk setup.py
src = "gooddata-sdk/setup.py"
search = "version=\"{current_version}\""
[[tool.tbump.file]]
# sdk setup.py dependency
src = "gooddata-sdk/setup.py"
search = "gooddata-.*-client~={current_version}"
[[tool.tbump.file]]
# sdk setup.py
src = "gooddata-dbt/setup.py"
search = "version=\"{current_version}\""
[[tool.tbump.file]]
# sdk setup.py dependency
src = "gooddata-dbt/setup.py"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# gooddata-flight-server setup.py
src = "gooddata-flight-server/setup.py"
search = "version=\"{current_version}\""
[[tool.tbump.file]]
# gooddata-flexconnect setup.py
src = "gooddata-flexconnect/setup.py"
search = "version=\"{current_version}\""
[[tool.tbump.file]]
# gooddata-flexconnect setup.py dependency
src = "gooddata-flexconnect/setup.py"
search = "gooddata-sdk~={current_version}"
[[tool.tbump.file]]
# gooddata-flexconnect setup.py dependency
src = "gooddata-flexconnect/setup.py"
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 = "gooddata-sdk/setup.py"
search = '"Documentation": "https://www.gooddata.com/docs/python-sdk/{current_version}"'
[[tool.tbump.file]]
src = "gooddata-sdk/README.md"
search = "https://www.gooddata.com/docs/python-sdk/{current_version}"
[[tool.tbump.file]]
src = "gooddata-pandas/setup.py"
search = '"Documentation": "https://gooddata-pandas.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
src = "gooddata-fdw/setup.py"
search = '"Documentation": "https://gooddata-fdw.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
src = "gooddata-flight-server/setup.py"
search = '"Documentation": "https://gooddata-flight-server.readthedocs.io/en/v{current_version}"'
[[tool.tbump.file]]
src = "gooddata-flexconnect/setup.py"
search = '"Documentation": "https://gooddata-flexconnect.readthedocs.io/en/v{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"