mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Configures ruff as the one stop linter and resolves warnings it raised
This commit is contained in:
@@ -39,7 +39,7 @@ class TikaDocumentParser(DocumentParser):
|
||||
except Exception as e:
|
||||
self.log(
|
||||
"warning",
|
||||
f"Error while fetching document metadata for " f"{document_path}: {e}",
|
||||
f"Error while fetching document metadata for {document_path}: {e}",
|
||||
)
|
||||
return []
|
||||
|
||||
@@ -76,7 +76,7 @@ class TikaDocumentParser(DocumentParser):
|
||||
except Exception as e:
|
||||
self.log(
|
||||
"warning",
|
||||
f"Unable to extract date for document " f"{document_path}: {e}",
|
||||
f"Unable to extract date for document {document_path}: {e}",
|
||||
)
|
||||
|
||||
self.archive_path = self.convert_to_pdf(document_path, file_name)
|
||||
|
0
src/paperless_tika/tests/__init__.py
Normal file
0
src/paperless_tika/tests/__init__.py
Normal file
Reference in New Issue
Block a user