From a5f970ad1df615f680b865472163ca1cc06359fb Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Sat, 7 Sep 2024 14:31:21 +0000 Subject: [PATCH] Fixed linting issues --- src/documents/barcodes.py | 4 +++- src/paperless/settings.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/documents/barcodes.py b/src/documents/barcodes.py index 4bf4f450f..de424237c 100644 --- a/src/documents/barcodes.py +++ b/src/documents/barcodes.py @@ -243,7 +243,9 @@ class BarcodePlugin(ConsumeTaskPlugin): barcode_max_pages = num_of_pages if barcode_max_pages < num_of_pages: - logger.debug(f"Reading of barcodes is limited to the first {barcode_max_pages} pages") + logger.debug( + f"Reading of barcodes is limited to the first {barcode_max_pages} pages", + ) # Loop al page for current_page_number in range(min(num_of_pages, barcode_max_pages)): diff --git a/src/paperless/settings.py b/src/paperless/settings.py index ceeb670d4..ebe64ba9e 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -925,7 +925,10 @@ CONSUMER_BARCODE_UPSCALE: Final[float] = __get_float( CONSUMER_BARCODE_DPI: Final[int] = __get_int("PAPERLESS_CONSUMER_BARCODE_DPI", 300) -CONSUMER_BARCODE_MAX_PAGES: Final[int] = __get_int("PAPERLESS_CONSUMER_BARCODE_MAX_PAGES", 0) +CONSUMER_BARCODE_MAX_PAGES: Final[int] = __get_int( + "PAPERLESS_CONSUMER_BARCODE_MAX_PAGES", + 0, +) CONSUMER_ENABLE_TAG_BARCODE: Final[bool] = __get_boolean( "PAPERLESS_CONSUMER_ENABLE_TAG_BARCODE",