Skip to content

Commit

Permalink
Merge pull request #414 from bruin-data/format-changes
Browse files Browse the repository at this point in the history
changes in  format flag
  • Loading branch information
terzioglub authored Jan 21, 2025
2 parents 0489cd6 + 2ab8c1f commit 77e3131
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,8 @@ func (a *Asset) FormatContent() ([]byte, error) {
}

if strings.HasSuffix(a.ExecutableFile.Path, ".py") {
beginning = `""" ` + configMarkerString + "\n\n"
end = "\n" + configMarkerString + ` """` + "\n\n"
beginning = `"""` + configMarkerString + "\n\n"
end = "\n" + configMarkerString + `"""` + "\n\n"
executableContent = a.ExecutableFile.Content
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/pipeline/testdata/persist/basic.expected.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
""" @bruin
"""@bruin
name: basic
tags:
- tag1
- tag2
@bruin """
@bruin"""

import json
import os
Expand Down
4 changes: 2 additions & 2 deletions pkg/pipeline/testdata/persist/basic.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
""" @bruin
"""@bruin
name: basic
type: python
tags:
- tag1
- tag2
@bruin """
@bruin"""

import json
import os
Expand Down

0 comments on commit 77e3131

Please sign in to comment.