diff --git a/bookwyrm/activitypub/book.py b/bookwyrm/activitypub/book.py index dfe14b6f9..597d7a665 100644 --- a/bookwyrm/activitypub/book.py +++ b/bookwyrm/activitypub/book.py @@ -8,7 +8,7 @@ from .image import Document @dataclass(init=False) class BookData(ActivityObject): - """ shared fields for all book data and authors""" + """shared fields for all book data and authors""" openlibraryKey: str = None inventaireId: str = None diff --git a/bookwyrm/connectors/abstract_connector.py b/bookwyrm/connectors/abstract_connector.py index 14fe3cb71..fd2b2707f 100644 --- a/bookwyrm/connectors/abstract_connector.py +++ b/bookwyrm/connectors/abstract_connector.py @@ -69,7 +69,7 @@ class AbstractMinimalConnector(ABC): return results def get_search_data(self, remote_id, **kwargs): # pylint: disable=no-self-use - """ this allows connectors to override the default behavior """ + """this allows connectors to override the default behavior""" return get_data(remote_id, **kwargs) @abstractmethod @@ -155,7 +155,7 @@ class AbstractConnector(AbstractMinimalConnector): return edition def get_book_data(self, remote_id): # pylint: disable=no-self-use - """ this allows connectors to override the default behavior """ + """this allows connectors to override the default behavior""" return get_data(remote_id) def create_edition_from_data(self, work, edition_data): diff --git a/bookwyrm/connectors/inventaire.py b/bookwyrm/connectors/inventaire.py index 594fe8101..ae6fb8628 100644 --- a/bookwyrm/connectors/inventaire.py +++ b/bookwyrm/connectors/inventaire.py @@ -6,7 +6,7 @@ from .connector_manager import ConnectorException class Connector(AbstractConnector): - """ instantiate a connector for OL """ + """instantiate a connector for OL""" def __init__(self, identifier): super().__init__(identifier) @@ -51,7 +51,7 @@ class Connector(AbstractConnector): ] + shared_mappings def get_remote_id(self, value): - """ convert an id/uri into a url """ + """convert an id/uri into a url""" return "{:s}?action=by-uris&uris={:s}".format(self.books_url, value) def get_book_data(self, remote_id): @@ -88,16 +88,16 @@ class Connector(AbstractConnector): ) def parse_isbn_search_data(self, data): - """ boop doop """ + """boop doop""" def format_isbn_search_result(self, search_result): - """ beep bloop """ + """beep bloop""" def is_work_data(self, data): return data.get("type") == "work" def load_edition_data(self, work_uri): - """ get a list of editions for a work """ + """get a list of editions for a work""" url = "{:s}?action=reverse-claims&property=wdt:P629&value={:s}".format( self.books_url, work_uri ) @@ -149,7 +149,7 @@ class Connector(AbstractConnector): return "%s%s" % (self.covers_url, cover_id) def resolve_keys(self, keys): - """ cool, it's "wd:Q3156592" now what the heck does that mean """ + """cool, it's "wd:Q3156592" now what the heck does that mean""" results = [] for uri in keys: try: @@ -161,5 +161,5 @@ class Connector(AbstractConnector): def get_language_code(options, code="en"): - """ when there are a bunch of translation but we need a single field """ + """when there are a bunch of translation but we need a single field""" return options.get(code)