Skip to content

Commit

Permalink
batou migrate: add newline at the end of .batou.json file (#460)
Browse files Browse the repository at this point in the history
batou migrate: add newline at the end of .batou.json file
  • Loading branch information
elikoga authored Jun 4, 2024
1 parent 9d563b9 commit 57b9422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## 2.5.0b3 (unreleased)
-----------------------

- Nothing changed yet.
- batou migrate now writes .batou.json with a newline at the end as `pre-commit` hooks expect (usually).


## 2.5.0b2 (2024-05-15)
Expand Down
1 change: 1 addition & 0 deletions src/batou/migrate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def write_config(version: int) -> None:
"""
with open(CONFIG_FILE_NAME, "w") as f:
json.dump({"migration": {"version": version}}, f)
f.write("\n")


def get_current_version() -> int:
Expand Down

0 comments on commit 57b9422

Please sign in to comment.