forked from databricks/databricks-sdk-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codegen.json
35 lines (35 loc) · 1.07 KB
/
.codegen.json
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
{
"formatter": "yapf -pri $FILENAMES && autoflake -i $FILENAMES && isort $FILENAMES",
"template_libraries": [
".codegen/lib.tmpl"
],
"packages": {
".codegen/service.py.tmpl": "databricks/sdk/service/{{.Name}}.py"
},
"batch": {
".codegen/__init__.py.tmpl": "databricks/sdk/__init__.py",
".codegen/error_mapping.py.tmpl": "databricks/sdk/errors/platform.py",
".codegen/error_overrides.py.tmpl": "databricks/sdk/errors/overrides.py"
},
"samples": {
".codegen/example.py.tmpl": "examples/{{if .IsAccount}}account{{else}}workspace{{end}}/{{.Service.SnakeName}}/{{.Method.SnakeName}}_{{.SnakeName}}.py"
},
"version": {
"databricks/sdk/version.py": "__version__ = '$VERSION'"
},
"toolchain": {
"required": ["python3"],
"pre_setup": [
"python3 -m venv .databricks"
],
"prepend_path": ".databricks/bin",
"setup": [
"pip install '.[dev]'"
],
"post_generate": [
"pytest -m 'not integration' --cov=databricks --cov-report html tests",
"pip install .",
"python docs/gen-client-docs.py"
]
}
}