From 094e40f6f4ac59614461ad5208244d2c7f82e725 Mon Sep 17 00:00:00 2001 From: Eli Kogan-Wang Date: Mon, 3 Jun 2024 11:36:16 +0200 Subject: [PATCH] batou migrate: add newline at the end of .batou.json file --- CHANGES.md | 2 +- src/batou/migrate/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index dfa74d6c..bc184f62 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,7 @@ ## 2.5.0b3 (unreleased) ----------------------- -- Nothing changed yet. +- batou migrate now writes .batou.json with a newline at the end. ## 2.5.0b2 (2024-05-15) diff --git a/src/batou/migrate/__init__.py b/src/batou/migrate/__init__.py index 0945d447..902dc4e0 100644 --- a/src/batou/migrate/__init__.py +++ b/src/batou/migrate/__init__.py @@ -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: