Commit 4a1f1cd
authored
Enable yaml formatter; fix formatting in default-python & dbt-sql (#3026)
## Changes
- Update 'make fmt' to format yaml with
https://github.com/google/yamlfmt/
- Templates dbt-sql and default-python updated to have consistent
indentation according to formatter.
## Why
For templates with a lot of options (default-python) it's easy to
introduce formatting issues - too many empty lines or not enough in the
output. I'd like to use formatter also on non-materialized templates in
default-python/combinations to ensure that resulting yamls are formatted
well for any possible combination of options. Related:
#30041 parent 582c2df commit 4a1f1cd
82 files changed
Lines changed: 352 additions & 339 deletions
File tree
- .github/workflows
- acceptance
- bundle
- artifacts
- glob_exact_whl
- nil_artifacts
- same_name_libraries
- shell
- bash
- basic
- cmd
- default
- sh
- unique_name_libraries
- whl_dbfs
- whl_dynamic
- whl_explicit
- whl_implicit_custom_path
- whl_implicit_notebook
- whl_implicit
- whl_multiple
- whl_no_cleanup
- whl_prebuilt_multiple
- whl_prebuilt_outside_dynamic/this_dab
- whl_prebuilt_outside/this_dab
- whl_via_environment_key
- deploy
- experimental-python
- fail-on-active-runs
- python-notebook
- includes
- include_outside_root
- non_yaml_in_include
- libraries
- maven
- pypi
- paths
- fallback_metric/resources
- invalid_pipeline_globs
- pipeline_expected_file_got_notebook/resources
- pipeline_globs/root/resources
- python
- mutator-ordering
- pipelines-support
- resolve-variable
- resource-loading
- restricted-execution
- unicode-support
- quality_monitor
- run/basic
- state
- telemetry/deploy-compute-type
- templates
- dbt-sql/output/my_dbt_sql
- dbt_profiles
- resources
- default-python/classic
- output/my_default_python/resources
- trampoline/warning_message
- variables
- complex_multiple_files
- complex
- issue_2436
- variable_overrides_in_target
- cmd/workspace/apps/run-local/app
- bundle
- internal/schema/testdata/pass
- tests
- environment_key_only
- job_cluster_key
- relative_path_with_includes/subfolder
- run_as/legacy
- yaml_anchors_separate_block
- cmd/labs/project/testdata/installed-in-home/.databricks/labs/blueprint/lib
- libs/template/templates
- dbt-sql/template/{{.project_name}}
- dbt_profiles
- resources
- default-python/template/{{.project_name}}/resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
0 commit comments