Skip to content

Commit 81b302e

Browse files
authored
[Python] Fix cleanup in codegen script (#3459)
## Changes Fix the cleanup stage in the codegen script to remove unnecessary `__init__` files. ## Why We have unnescessary `compute/__init__.py` that shouldn't have existed in the first place. ## Tests Codegen script is executed on every commit in CI
1 parent a6fbfc6 commit 81b302e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

experimental/python/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ lint:
1717
uv run ruff format --diff
1818

1919
codegen:
20-
find databricks -name _models | xargs rm -rf
20+
find databricks/bundles -type d -mindepth 1 -maxdepth 1 \
21+
! -path databricks/bundles/core \
22+
! -path databricks/bundles/resources \
23+
-exec rm -rf {} \;
2124

2225
cd codegen; uv run -m pytest codegen_tests
2326
cd codegen; uv run -m codegen.main --output ..

experimental/python/databricks/bundles/compute/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)