Commit f154d35
authored
Fix linter formatting in lakeflow-pipelines template (#3171)
## Changes
Replaced single-line return statements with multi-line format in two
transformation templates to fix linter warnings.
- `sample_trips_{{.project_name}}.py.tmpl`: Multi-line Spark DataFrame
operation
- `sample_zones_{{.project_name}}.py.tmpl`: Multi-line Spark aggregation
operation
Removed from `ruff.toml`.
Now matches cli-pipelines format.
## Why
Single-line statements were triggering linter warnings due to excessive
line length. Multi-line format resolves these issues while maintaining
identical functionality and improving readability.
## Tests
- Verified functional equivalence between old and new formats
- Modified output to match the new format1 parent 9138476 commit f154d35
File tree
5 files changed
+5
-24
lines changed- acceptance/bundle/templates/lakeflow-pipelines/python/output/my_lakeflow_pipelines/resources/my_lakeflow_pipelines_pipeline/transformations
- libs/template/templates/lakeflow-pipelines/template/{{.project_name}}/resources/{{.project_name}}_pipeline/transformations
5 files changed
+5
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
0 commit comments