Skip to content

Commit 93fb2e6

Browse files
committed
Enforce no trailing whitespace
1 parent e6aae70 commit 93fb2e6

File tree

29 files changed

+176
-37
lines changed

29 files changed

+176
-37
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
with:
107107
version: "0.9.1"
108108
args: "format --check"
109+
- name: Run whitespace check
110+
run: python tools/validate_whitespace.py
109111

110112
validate-bundle-schema:
111113
needs: cleanups

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"recommendations": [
33
"bierner.markdown-mermaid"
44
]
5-
}
5+
}

.wsignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Files to exempt from whitespace check. Can contain patterns in Python's glob module format.
2+
# Generated files:
3+
.codegen/_openapi_sha
4+
.release_metadata.json
5+
bundle/schema/jsonschema.json
6+
experimental/python/docs/images/databricks-logo.svg
7+
acceptance/cmd/patchwhl/output/my_test_code-0.0.1+1741187253123456700.dist-info/METADATA
8+
acceptance/cmd/patchwhl/output/my_test_code-0.0.1+1741187253123456700.dist-info/WHEEL
9+
10+
# "bundle run" has trailing whitespace:
11+
acceptance/bundle/integration_whl/*/output.txt
12+
13+
# "bundle init" has trailing whitespace:
14+
acceptance/bundle/templates-machinery/helpers-error/output.txt
15+
16+
# "bundle deploy" with apps has trailing whitespace:
17+
acceptance/bundle/apps/config_section/output.txt
18+
integration/bundle/testdata/apps/bundle_deploy.txt
19+
20+
# Extra whitespace within the default template:
21+
acceptance/bundle/templates/default-python/classic/out.compare-vs-serverless.diff
22+
acceptance/bundle/templates/default-python/classic/output/my_default_python/resources/my_default_python.job.yml
23+
acceptance/bundle/templates/default-python/serverless/output/my_default_python/resources/my_default_python.job.yml
24+
25+
# Extra whitespace in command help:
26+
acceptance/cmd/workspace/apps/output.txt
27+
28+
# Extra whitespace in generated commands:
29+
cmd/workspace/**/*.go
30+
cmd/account/**/*.go
31+
32+
# Extra whitespace in generated Python models
33+
experimental/python/databricks/bundles/*/_models/*.py
34+
35+
# Developed elsewhere:
36+
internal/genkit/tagging.py
37+
38+
# Docsgen:
39+
bundle/docsgen/output/resources.md
40+
bundle/docsgen/output/reference.md
41+
bundle/docsgen/testdata/anchors.md

acceptance/bundle/deployment/bind/cluster/databricks.yml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ resources:
66
cluster1:
77
cluster_name: "DEFAULT Test Cluster"
88
spark_version: '16.2.x-scala2.12'
9-

acceptance/bundle/deployment/bind/dashboard/databricks.yml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ resources:
99
embed_credentials: true
1010
file_path: "sample-dashboard.lvdash.json"
1111
parent_path: /Users/$CURRENT_USER_NAME
12-

acceptance/bundle/deployment/bind/dashboard/recreation/databricks.yml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ resources:
88
warehouse_id: $TEST_DEFAULT_WAREHOUSE_ID
99
embed_credentials: true
1010
file_path: "sample-dashboard.lvdash.json"
11-

acceptance/bundle/deployment/bind/dashboard/recreation/script

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ trace $CLI bundle deployment unbind dashboard1
2424
trace $CLI bundle deploy --auto-approve
2525

2626
trace $CLI lakeview get "${DASHBOARD_ID}" | jq '{display_name, lifecycle_state}'
27-
28-
29-

acceptance/bundle/deployment/bind/experiment/databricks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ resources:
55
experiments:
66
experiment1:
77
name: $EXPERIMENT_NAME
8-

acceptance/bundle/deployment/bind/experiment/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
=== Bind experiment test:
2+
=== Bind experiment test:
33
=== Substitute variables in the template
44
=== Create a pre-defined experiment
55
=== Bind experiment: Updating deployment state...
@@ -27,5 +27,5 @@ Destroy complete!
2727
"lifecycle_stage": "active"
2828
}
2929

30-
=== Test cleanup:
30+
=== Test cleanup:
3131
=== Delete the pre-defined experiment: 0

acceptance/bundle/deployment/bind/experiment/script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title "Bind experiment test: "
1+
title "Bind experiment test:"
22

33
title "Substitute variables in the template"
44
BUNDLE_NAME_SUFFIX=$(uuid)
@@ -16,7 +16,7 @@ title "Create a pre-defined experiment"
1616
EXPERIMENT_ID=$($CLI experiments create-experiment "${EXPERIMENT_NAME}" | jq -r '.experiment_id')
1717

1818
cleanupRemoveExperiment() {
19-
title "Test cleanup: "
19+
title "Test cleanup:"
2020
title "Delete the pre-defined experiment: "
2121
$CLI experiments delete-experiment ${EXPERIMENT_ID}
2222
echo $?

0 commit comments

Comments
 (0)