diff --git a/comicapi/archivers/archiver.py b/comicapi/archivers/archiver.py index 5a94c76..46b9fe2 100644 --- a/comicapi/archivers/archiver.py +++ b/comicapi/archivers/archiver.py @@ -6,7 +6,6 @@ from typing import Protocol, runtime_checkable @runtime_checkable class Archiver(Protocol): - """Archiver Protocol""" """The path to the archive""" diff --git a/comicapi/archivers/folder.py b/comicapi/archivers/folder.py index 9a3c0c3..b5f4079 100644 --- a/comicapi/archivers/folder.py +++ b/comicapi/archivers/folder.py @@ -10,7 +10,6 @@ logger = logging.getLogger(__name__) class FolderArchiver(Archiver): - """Folder implementation""" def __init__(self) -> None: diff --git a/comicapi/archivers/zip.py b/comicapi/archivers/zip.py index 519f483..3c5a44d 100644 --- a/comicapi/archivers/zip.py +++ b/comicapi/archivers/zip.py @@ -17,7 +17,6 @@ logger = logging.getLogger(__name__) class ZipArchiver(Archiver): - """ZIP implementation""" def __init__(self) -> None: diff --git a/comicapi/comicarchive.py b/comicapi/comicarchive.py index 4b28773..0a7822d 100644 --- a/comicapi/comicarchive.py +++ b/comicapi/comicarchive.py @@ -1,4 +1,5 @@ """A class to represent a single comic, be it file or folder of images""" + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/comicapi/filenamelexer.py b/comicapi/filenamelexer.py index b77595b..d4d4cec 100644 --- a/comicapi/filenamelexer.py +++ b/comicapi/filenamelexer.py @@ -88,8 +88,7 @@ class Item: class LexerFunc(Protocol): - def __call__(self, __origin: Lexer) -> LexerFunc | None: - ... + def __call__(self, __origin: Lexer) -> LexerFunc | None: ... class Lexer: diff --git a/comicapi/filenameparser.py b/comicapi/filenameparser.py index b25ae01..b77ce52 100644 --- a/comicapi/filenameparser.py +++ b/comicapi/filenameparser.py @@ -2,6 +2,7 @@ This should probably be re-written, but, well, it mostly works! """ + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -344,8 +345,7 @@ protofolius_issue_number_scheme = { class ParserFunc(Protocol): - def __call__(self, __origin: Parser) -> ParserFunc | None: - ... + def __call__(self, __origin: Parser) -> ParserFunc | None: ... eof = filenamelexer.Item(filenamelexer.ItemType.EOF, -1, "") diff --git a/comicapi/genericmetadata.py b/comicapi/genericmetadata.py index cae6e65..35c68cf 100644 --- a/comicapi/genericmetadata.py +++ b/comicapi/genericmetadata.py @@ -5,6 +5,7 @@ tagging schemes and databases, such as ComicVine or GCD. This makes conversion possible, however lossy it might be """ + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,7 +35,6 @@ logger = logging.getLogger(__name__) class PageType: - """ These page info classes are exactly the same as the CIX scheme, since it's unique diff --git a/comicapi/issuestring.py b/comicapi/issuestring.py index b2cda1d..5a1f339 100644 --- a/comicapi/issuestring.py +++ b/comicapi/issuestring.py @@ -4,6 +4,7 @@ Class for handling the odd permutations of an 'issue number' that the comics industry throws at us. e.g.: "12", "12.1", "0", "-1", "5AU", "100-2" """ + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/comicapi/metadata/comet.py b/comicapi/metadata/comet.py index f165741..a521784 100644 --- a/comicapi/metadata/comet.py +++ b/comicapi/metadata/comet.py @@ -1,4 +1,5 @@ """A class to encapsulate CoMet data""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comicapi/metadata/comicbookinfo.py b/comicapi/metadata/comicbookinfo.py index 2e90475..3c49d82 100644 --- a/comicapi/metadata/comicbookinfo.py +++ b/comicapi/metadata/comicbookinfo.py @@ -1,4 +1,5 @@ """A class to encapsulate the ComicBookInfo data""" + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/comicapi/metadata/comicrack.py b/comicapi/metadata/comicrack.py index e3d90fd..b9782d6 100644 --- a/comicapi/metadata/comicrack.py +++ b/comicapi/metadata/comicrack.py @@ -1,4 +1,5 @@ """A class to encapsulate ComicRack's ComicInfo.xml data""" + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/comicapi/utils.py b/comicapi/utils.py index f50053c..cb44cfe 100644 --- a/comicapi/utils.py +++ b/comicapi/utils.py @@ -1,4 +1,5 @@ """Some generic utilities""" + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/comictaggerlib/autotagmatchwindow.py b/comictaggerlib/autotagmatchwindow.py index a99d607..a9494d7 100644 --- a/comictaggerlib/autotagmatchwindow.py +++ b/comictaggerlib/autotagmatchwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to select from automated issue matches""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/autotagprogresswindow.py b/comictaggerlib/autotagprogresswindow.py index 6864fe3..e10c48e 100644 --- a/comictaggerlib/autotagprogresswindow.py +++ b/comictaggerlib/autotagprogresswindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to show ID log and progress""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/autotagstartwindow.py b/comictaggerlib/autotagstartwindow.py index fae8037..a1e54a0 100644 --- a/comictaggerlib/autotagstartwindow.py +++ b/comictaggerlib/autotagstartwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to confirm and set config for auto-tag""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/cbltransformer.py b/comictaggerlib/cbltransformer.py index 3d0ea04..f5674ef 100644 --- a/comictaggerlib/cbltransformer.py +++ b/comictaggerlib/cbltransformer.py @@ -1,4 +1,5 @@ """A class to manage modifying metadata specifically for CBL/CBI""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/coverimagewidget.py b/comictaggerlib/coverimagewidget.py index c49d232..22a43a3 100644 --- a/comictaggerlib/coverimagewidget.py +++ b/comictaggerlib/coverimagewidget.py @@ -3,6 +3,7 @@ Display cover images from either a local archive, or from comic source metadata. TODO: This should be re-factored using subclasses! """ + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/crediteditorwindow.py b/comictaggerlib/crediteditorwindow.py index 70ae1e0..27c6fde 100644 --- a/comictaggerlib/crediteditorwindow.py +++ b/comictaggerlib/crediteditorwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to edit credits""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/ctsettings/commandline.py b/comictaggerlib/ctsettings/commandline.py index ec74e06..2c4fb89 100644 --- a/comictaggerlib/ctsettings/commandline.py +++ b/comictaggerlib/ctsettings/commandline.py @@ -1,4 +1,5 @@ """CLI settings for ComicTagger""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/exportwindow.py b/comictaggerlib/exportwindow.py index 0dba3c9..46b8e4f 100644 --- a/comictaggerlib/exportwindow.py +++ b/comictaggerlib/exportwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to confirm and set options for export to zip""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/filerenamer.py b/comictaggerlib/filerenamer.py index 6c8488c..ad52062 100644 --- a/comictaggerlib/filerenamer.py +++ b/comictaggerlib/filerenamer.py @@ -1,4 +1,5 @@ """Functions for renaming files based on metadata""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/fileselectionlist.py b/comictaggerlib/fileselectionlist.py index 7ab12de..ccd9647 100644 --- a/comictaggerlib/fileselectionlist.py +++ b/comictaggerlib/fileselectionlist.py @@ -1,4 +1,5 @@ """A PyQt5 widget for managing list of comic archive files""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/gui.py b/comictaggerlib/gui.py index e8e0348..9e3714a 100644 --- a/comictaggerlib/gui.py +++ b/comictaggerlib/gui.py @@ -84,8 +84,7 @@ try: except ImportError as e: - def show_exception_box(log_msg: str) -> None: - ... + def show_exception_box(log_msg: str) -> None: ... logger.exception("Qt unavailable") qt_available = False diff --git a/comictaggerlib/imagefetcher.py b/comictaggerlib/imagefetcher.py index c014ad5..a6cd167 100644 --- a/comictaggerlib/imagefetcher.py +++ b/comictaggerlib/imagefetcher.py @@ -1,4 +1,5 @@ """A class to manage fetching and caching of images by URL""" + # # Copyright 2012-2014 ComicTagger Authors # @@ -34,12 +35,10 @@ if TYPE_CHECKING: logger = logging.getLogger(__name__) -class ImageFetcherException(Exception): - ... +class ImageFetcherException(Exception): ... -def fetch_complete(url: str, image_data: bytes | QtCore.QByteArray) -> None: - ... +def fetch_complete(url: str, image_data: bytes | QtCore.QByteArray) -> None: ... class ImageFetcher: diff --git a/comictaggerlib/imagehasher.py b/comictaggerlib/imagehasher.py index 0a73da7..972f8c9 100644 --- a/comictaggerlib/imagehasher.py +++ b/comictaggerlib/imagehasher.py @@ -1,4 +1,5 @@ """A class to manage creating image content hashes, and calculate hamming distances""" + # # Copyright 2013 ComicTagger Authors # diff --git a/comictaggerlib/imagepopup.py b/comictaggerlib/imagepopup.py index 6e27291..40ebc41 100644 --- a/comictaggerlib/imagepopup.py +++ b/comictaggerlib/imagepopup.py @@ -1,4 +1,5 @@ """A PyQT4 widget to display a popup image""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/issueidentifier.py b/comictaggerlib/issueidentifier.py index 18be982..181ef4e 100644 --- a/comictaggerlib/issueidentifier.py +++ b/comictaggerlib/issueidentifier.py @@ -1,4 +1,5 @@ """A class to automatically identify a comic archive""" + # # Copyright 2012-2014 ComicTagger Authors # @@ -56,12 +57,10 @@ class Score(TypedDict): hash: int -class IssueIdentifierNetworkError(Exception): - ... +class IssueIdentifierNetworkError(Exception): ... -class IssueIdentifierCancelled(Exception): - ... +class IssueIdentifierCancelled(Exception): ... class IssueIdentifier: diff --git a/comictaggerlib/issueselectionwindow.py b/comictaggerlib/issueselectionwindow.py index 4968e18..6e89078 100644 --- a/comictaggerlib/issueselectionwindow.py +++ b/comictaggerlib/issueselectionwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to select specific issue from list""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/logwindow.py b/comictaggerlib/logwindow.py index 34e7ca3..cb0f6b3 100644 --- a/comictaggerlib/logwindow.py +++ b/comictaggerlib/logwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to a text file or log""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/main.py b/comictaggerlib/main.py index 4721363..3b749b0 100644 --- a/comictaggerlib/main.py +++ b/comictaggerlib/main.py @@ -1,4 +1,5 @@ """A python app to (automatically) tag comic archives""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/matchselectionwindow.py b/comictaggerlib/matchselectionwindow.py index 9dccca6..305dd2c 100644 --- a/comictaggerlib/matchselectionwindow.py +++ b/comictaggerlib/matchselectionwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to select from automated issue matches""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/optionalmsgdialog.py b/comictaggerlib/optionalmsgdialog.py index df2e267..85c39ae 100644 --- a/comictaggerlib/optionalmsgdialog.py +++ b/comictaggerlib/optionalmsgdialog.py @@ -10,6 +10,7 @@ said_yes, checked = OptionalMessageDialog.question(self, "QtWidgets.Question", "Are you sure you wish to do this?", ) """ + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/pagebrowser.py b/comictaggerlib/pagebrowser.py index c2a20f3..e4c11a2 100644 --- a/comictaggerlib/pagebrowser.py +++ b/comictaggerlib/pagebrowser.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to show pages of a comic archive""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index b457a19..1c5fd20 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -1,4 +1,5 @@ """A PyQt5 widget for editing the page list info""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/pageloader.py b/comictaggerlib/pageloader.py index cd38213..910e848 100644 --- a/comictaggerlib/pageloader.py +++ b/comictaggerlib/pageloader.py @@ -1,4 +1,5 @@ """A PyQT4 class to load a page image from a ComicArchive in a background thread""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/progresswindow.py b/comictaggerlib/progresswindow.py index 020e1de..93e8531 100644 --- a/comictaggerlib/progresswindow.py +++ b/comictaggerlib/progresswindow.py @@ -1,4 +1,5 @@ """A PyQt5 dialog to show ID log and progress""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/renamewindow.py b/comictaggerlib/renamewindow.py index 28078d7..61576f3 100644 --- a/comictaggerlib/renamewindow.py +++ b/comictaggerlib/renamewindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to confirm rename""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 15abf8f..6bc69b0 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to select specific series/volume from list""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/settingswindow.py b/comictaggerlib/settingswindow.py index a5d5df7..f52c509 100644 --- a/comictaggerlib/settingswindow.py +++ b/comictaggerlib/settingswindow.py @@ -1,4 +1,5 @@ """A PyQT4 dialog to enter app settings""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index c59cd83..e97f0c2 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -1,4 +1,5 @@ """The main window of the ComicTagger app""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictaggerlib/ui/qtutils.py b/comictaggerlib/ui/qtutils.py index c85f18c..01921c0 100644 --- a/comictaggerlib/ui/qtutils.py +++ b/comictaggerlib/ui/qtutils.py @@ -89,8 +89,7 @@ if qt_available: except ImportError: - def new_web_view(parent: QWidget) -> QWebEngineView: - ... + def new_web_view(parent: QWidget) -> QWebEngineView: ... def reduce_widget_font_size(widget: QtWidgets.QWidget, delta: int = 2) -> None: f = widget.font() diff --git a/comictaggerlib/versionchecker.py b/comictaggerlib/versionchecker.py index 72bea35..c054908 100644 --- a/comictaggerlib/versionchecker.py +++ b/comictaggerlib/versionchecker.py @@ -1,4 +1,5 @@ """Version checker""" + # # Copyright 2013 ComicTagger Authors # diff --git a/comictalker/comiccacher.py b/comictalker/comiccacher.py index 6a6e287..c240702 100644 --- a/comictalker/comiccacher.py +++ b/comictalker/comiccacher.py @@ -1,4 +1,5 @@ """A python class to manage caching of metadata from comic sources""" + # # Copyright 2012-2014 ComicTagger Authors # diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index 11fdb4b..7611dd9 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -1,6 +1,7 @@ """ ComicVine information source """ + # Copyright 2012-2014 ComicTagger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/testing/filenames.py b/testing/filenames.py index ea79cdb..ad0eb4e 100644 --- a/testing/filenames.py +++ b/testing/filenames.py @@ -9,6 +9,7 @@ format is bool(xfail: expected failure on the old parser) ) """ + from __future__ import annotations import datetime