Commit 2da2d76
authored
Fix formatting in the default template (#3950)
## Changes
Fix formatting in the default template. Previously, there was a diff:
```diff
--- test_20251119/src/test_20251119/main.py
+++ test_20251119/src/test_20251119/main.py
@@ -5,7 +5,9 @@
def main():
# Process command-line arguments
- parser = argparse.ArgumentParser(description="Databricks job with catalog and schema parameters")
+ parser = argparse.ArgumentParser(
+ description="Databricks job with catalog and schema parameters"
+ )
parser.add_argument("--catalog", required=True)
parser.add_argument("--schema", required=True)
args = parser.parse_args()
```
The problem is in the default template and not specific to PyDABs.
## Why
The template should be pre-formatted so that after the project is
initialized, it's already in its final state.
## Tests
Updated acceptance tests to check formatting for all files that template
produces1 parent daef3df commit 2da2d76
File tree
5 files changed
+26
-8
lines changed- acceptance/bundle/templates
- default-python
- classic/output/my_default_python/src/my_default_python
- serverless/output/my_default_python/src/my_default_python
- pydabs/check-formatting
- libs/template/templates/default/template/{{.project_name}}/src/{{.project_name}}
5 files changed
+26
-8
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | | - | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments