From 61f48b30f49dc218fcf5a34e44dbd55d4a9b7449 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:24:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- gcd_talker/gcd.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/gcd_talker/gcd.py b/gcd_talker/gcd.py index 7def9e3..384f6c5 100644 --- a/gcd_talker/gcd.py +++ b/gcd_talker/gcd.py @@ -1,6 +1,7 @@ """ Grand Comics Database™ (https://www.comics.org) information source """ + # Copyright comictagger team # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -96,7 +97,9 @@ class GCDTalker(ComicTalker): id: str = "gcd" website: str = "https://www.comics.org/" logo_url: str = "https://files1.comics.org/static/img/gcd_logo.aaf0e64616e2.png" - attribution: str = f"Data from {name} (CCA license)" + attribution: str = ( + f"Data from {name} (CCA license)" + ) about: str = ( f"{name}™ is an ongoing international project to build a detailed " f"comic-book database that will be easy to use and understand, and also easy for contributors to " @@ -674,12 +677,16 @@ def _format_gcd_issue(self, row: sqlite3.Row, complete: bool = False) -> GCDIssu number=row_dict["number"], issue_title=row_dict["issue_title"], series_id=row_dict["series_id"], - story_titles=row_dict["story_titles"].split("\n") - if "story_titles" in row_dict and row_dict["story_titles"] is not None - else [], - synopses=row_dict["synopses"].split("\n\n") - if "synopses" in row_dict and row_dict["synopses"] is not None - else [], + story_titles=( + row_dict["story_titles"].split("\n") + if "story_titles" in row_dict and row_dict["story_titles"] is not None + else [] + ), + synopses=( + row_dict["synopses"].split("\n\n") + if "synopses" in row_dict and row_dict["synopses"] is not None + else [] + ), image="", alt_image_urls=[], covers_downloaded=False,