Skip to content

Commit 4ed4bdb

Browse files
committed
Add a \n to the end of the replay file
This is just to be nice to most editors and text files conventions, that likes it more if there is a `\n` at the end of the file. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 667628f commit 4ed4bdb

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737

3838
This is just a hack to be able to show a help about the template variables, keeping that text only increases the size and noise in the replay file.
3939

40+
- Add a `\n` to the end of the replay file.
41+
42+
This is just to be nice to most editors and text files conventions, that likes it more if there is a `\n` at the end of the file.
43+
4044
## Bug Fixes
4145

4246
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->

cookiecutter/hooks/post_gen_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def copy_replay_file() -> None:
199199

200200
with dst.open("w", encoding="utf8") as output_file:
201201
_json.dump(replay_data, output_file, indent=2)
202+
output_file.write("\n")
202203
except KeyError as error:
203204
print(
204205
f"WARNING: Error parsing the replay file {src} -> {dst} ({error}). "

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/.cookiecutter-replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"github_repo_name": "frequenz-actor-test",
1616
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)"
1717
}
18-
}
18+
}

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/.cookiecutter-replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"github_repo_name": "frequenz-api-test",
1616
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)"
1717
}
18-
}
18+
}

tests_golden/integration/test_cookiecutter_generation/app/frequenz-app-test/.cookiecutter-replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"github_repo_name": "frequenz-app-test",
1616
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)"
1717
}
18-
}
18+
}

tests_golden/integration/test_cookiecutter_generation/lib/frequenz-test-python/.cookiecutter-replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"github_repo_name": "frequenz-test-python",
1616
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)"
1717
}
18-
}
18+
}

tests_golden/integration/test_cookiecutter_generation/model/frequenz-model-test/.cookiecutter-replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"github_repo_name": "frequenz-model-test",
1616
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)"
1717
}
18-
}
18+
}

0 commit comments

Comments
 (0)