forked from gooddata/gooddata-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
165 lines (137 loc) · 3.79 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
# (C) 2021 GoodData Corporation
[tool.ruff]
exclude = [
".git",
".venv",
"__pycache__",
".tox",
"build",
"dist",
"gooddata-api-client",
]
line-length = 120
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
]
[tool.ruff.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"]
[tool.black]
line-length = 120
# intentionally ignore the generated clients
extend-exclude = '(gooddata-api-client|.*\.snapshot\..*)'
[tool.isort]
# make isort setup compatible with black
profile = "black"
multi_line_output = 3
include_trailing_comma = true
line_length = 120
skip_glob = ["*/gooddata-api-client/*", "*/.snapshot/*"]
src_paths = [
"gooddata-api-client",
"gooddata-sdk",
"gooddata-fdw",
"gooddata-pandas"
]
[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.7.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]]
# 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}"'
# 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"