From 72b952bb507599316785dd633e29bf7dee969590 Mon Sep 17 00:00:00 2001 From: Jay Miller Date: Sat, 5 Oct 2024 20:02:32 -0400 Subject: [PATCH] fix pre-commit issue on call (#511) add line to end of json file to be compatible with pre-commit --- _conferences/__main__.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/_conferences/__main__.py b/_conferences/__main__.py index 15c476b..2c07d58 100644 --- a/_conferences/__main__.py +++ b/_conferences/__main__.py @@ -81,14 +81,13 @@ def build_conferences() -> list[dict[str, str | None]]: # pragma: no cover ROOT = pathlib.Path(__file__).parent.parent conferences_path = ROOT.joinpath("_data/conferences.json") conferences = build_conferences() - conferences_path.write_text( - json.dumps( - list( - sorted( - conferences, - key=lambda x: __to_conference_date(x["conference_start_date"]), - ) - ), - indent=2, - ) + j_conferences = json.dumps( + list( + sorted( + conferences, + key=lambda x: __to_conference_date(x["conference_start_date"]), + ) + ), + indent=2, ) + conferences_path.write_text(f"{j_conferences}\n")