From 710dc6caa761354f3bb77f346582234c24f9b91f Mon Sep 17 00:00:00 2001 From: Salamandar <6552989+Salamandar@users.noreply.github.com> Date: Sun, 24 Mar 2024 21:19:46 +0000 Subject: [PATCH] :art: Format Python code with Black --- save_added_date.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/save_added_date.py b/save_added_date.py index 1d28d93..f31c833 100755 --- a/save_added_date.py +++ b/save_added_date.py @@ -99,9 +99,20 @@ def add_deprecation_dates(file: Path) -> None: def date_added_to(match: str, file: Path) -> int | None: - commits = Repo(REPO_APPS_ROOT).git.log( - "-S", match, "--first-parent", "--reverse", - "--date=unix", "--format=%cd", "--", str(file)).splitlines() + commits = ( + Repo(REPO_APPS_ROOT) + .git.log( + "-S", + match, + "--first-parent", + "--reverse", + "--date=unix", + "--format=%cd", + "--", + str(file), + ) + .splitlines() + ) if not commits: return None @@ -129,8 +140,8 @@ def main() -> None: add_apparition_dates(REPO_APPS_ROOT / "wishlist.toml", key="added_date") add_apparition_dates(REPO_APPS_ROOT / "graveyard.toml", key="killed_date") - add_deprecation_dates(REPO_APPS_ROOT/"apps.toml") - add_deprecation_dates(REPO_APPS_ROOT/"graveyard.toml") + add_deprecation_dates(REPO_APPS_ROOT / "apps.toml") + add_deprecation_dates(REPO_APPS_ROOT / "graveyard.toml") if __name__ == "__main__":