Skip to content

Commit

Permalink
fix pre-commit issue on call (#511)
Browse files Browse the repository at this point in the history
add line to end of json file to be compatible with pre-commit
  • Loading branch information
kjaymiller authored Oct 6, 2024
1 parent 0b2fde0 commit 72b952b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions _conferences/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 72b952b

Please sign in to comment.