Skip to content

Commit 7f66409

Browse files
Sankalp-MittalIsaac
andcommitted
Drop trailing blank line from generated _generated/__init__.py
The package marker was written as the bare HEADER, which ends in a blank line; the whitespace check strips it, so CI's post-checks git-diff gate failed. Write the header with a single trailing newline instead. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 279331a commit 7f66409

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

python/codegen/codegen/generated_wiring.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def write_wiring(output: str):
6666
generated_path = core_path / "_generated"
6767
generated_path.mkdir(parents=True, exist_ok=True)
6868

69-
(generated_path / "__init__.py").write_text(HEADER)
69+
# Package marker: just the generated-file header, with no trailing blank
70+
# line (the whitespace check rejects one).
71+
(generated_path / "__init__.py").write_text(HEADER.rstrip() + "\n")
7072
(generated_path / "_resource_types.py").write_text(
7173
HEADER + _resource_types_code(resources)
7274
)

python/databricks/bundles/core/_generated/__init__.py

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)