mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Chore(deps-dev): Bump the development group with 2 updates (#8841)
* Chore(deps-dev): Bump the development group with 2 updates Bumps the development group with 2 updates: [ruff](https://github.com/astral-sh/ruff) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material). Updates `ruff` from 0.8.6 to 0.9.2 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.8.6...0.9.2) Updates `mkdocs-material` from 9.5.49 to 9.5.50 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.49...9.5.50) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development - dependency-name: mkdocs-material dependency-type: direct:development update-type: version-update:semver-patch dependency-group: development ... Signed-off-by: dependabot[bot] <support@github.com> * Update .pre-commit-config.yaml * Run new ruff format --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -32,8 +32,7 @@ def changed_password_check(app_configs, **kwargs):
|
||||
if not settings.PASSPHRASE:
|
||||
return [
|
||||
Error(
|
||||
"The database contains encrypted documents but no password "
|
||||
"is set.",
|
||||
"The database contains encrypted documents but no password is set.",
|
||||
),
|
||||
]
|
||||
|
||||
|
@@ -315,8 +315,7 @@ class DocumentClassifier:
|
||||
else:
|
||||
self.correspondent_classifier = None
|
||||
logger.debug(
|
||||
"There are no correspondents. Not training correspondent "
|
||||
"classifier.",
|
||||
"There are no correspondents. Not training correspondent classifier.",
|
||||
)
|
||||
|
||||
if num_document_types > 0:
|
||||
@@ -326,8 +325,7 @@ class DocumentClassifier:
|
||||
else:
|
||||
self.document_type_classifier = None
|
||||
logger.debug(
|
||||
"There are no document types. Not training document type "
|
||||
"classifier.",
|
||||
"There are no document types. Not training document type classifier.",
|
||||
)
|
||||
|
||||
if num_storage_paths > 0:
|
||||
|
@@ -18,8 +18,7 @@ class Command(BaseCommand):
|
||||
parser.add_argument(
|
||||
"--passphrase",
|
||||
help=(
|
||||
"If PAPERLESS_PASSPHRASE isn't set already, you need to "
|
||||
"specify it here"
|
||||
"If PAPERLESS_PASSPHRASE isn't set already, you need to specify it here"
|
||||
),
|
||||
)
|
||||
|
||||
|
@@ -96,7 +96,7 @@ class TestDocumentSearchApi(DirectoriesMixin, APITestCase):
|
||||
doc = Document.objects.create(
|
||||
checksum=str(i),
|
||||
pk=i + 1,
|
||||
title=f"Document {i+1}",
|
||||
title=f"Document {i + 1}",
|
||||
content="content",
|
||||
)
|
||||
index.update_document(writer, doc)
|
||||
@@ -131,7 +131,7 @@ class TestDocumentSearchApi(DirectoriesMixin, APITestCase):
|
||||
doc = Document.objects.create(
|
||||
checksum=str(i),
|
||||
pk=i + 1,
|
||||
title=f"Document {i+1}",
|
||||
title=f"Document {i + 1}",
|
||||
content="content",
|
||||
)
|
||||
index.update_document(writer, doc)
|
||||
@@ -630,8 +630,8 @@ class TestDocumentSearchApi(DirectoriesMixin, APITestCase):
|
||||
doc = Document.objects.create(
|
||||
checksum=str(i),
|
||||
pk=i + 1,
|
||||
title=f"Document {i+1}",
|
||||
content=f"Things document {i+1}",
|
||||
title=f"Document {i + 1}",
|
||||
content=f"Things document {i + 1}",
|
||||
)
|
||||
index.update_document(writer, doc)
|
||||
|
||||
|
@@ -295,9 +295,9 @@ class TestMigrations(TransactionTestCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
|
||||
assert (
|
||||
self.migrate_from and self.migrate_to
|
||||
), f"TestCase '{type(self).__name__}' must define migrate_from and migrate_to properties"
|
||||
assert self.migrate_from and self.migrate_to, (
|
||||
f"TestCase '{type(self).__name__}' must define migrate_from and migrate_to properties"
|
||||
)
|
||||
self.migrate_from = [(self.app, self.migrate_from)]
|
||||
if self.dependencies is not None:
|
||||
self.migrate_from.extend(self.dependencies)
|
||||
|
@@ -552,8 +552,7 @@ class MailAccountHandler(LoggingMixin):
|
||||
mailbox_login(M, account)
|
||||
|
||||
self.log.debug(
|
||||
f"Account {account}: Processing "
|
||||
f"{account.rules.count()} rule(s)",
|
||||
f"Account {account}: Processing {account.rules.count()} rule(s)",
|
||||
)
|
||||
|
||||
for rule in account.rules.order_by("order"):
|
||||
|
@@ -129,9 +129,11 @@ class TestParserLive:
|
||||
assert thumb.exists()
|
||||
assert thumb.is_file()
|
||||
|
||||
assert (
|
||||
self.imagehash(thumb) == self.imagehash(simple_txt_email_thumbnail_file)
|
||||
), f"Created Thumbnail {thumb} differs from expected file {simple_txt_email_thumbnail_file}"
|
||||
assert self.imagehash(thumb) == self.imagehash(
|
||||
simple_txt_email_thumbnail_file,
|
||||
), (
|
||||
f"Created Thumbnail {thumb} differs from expected file {simple_txt_email_thumbnail_file}"
|
||||
)
|
||||
|
||||
def test_tika_parse_successful(self, mail_parser: MailDocumentParser):
|
||||
"""
|
||||
@@ -226,6 +228,6 @@ class TestParserLive:
|
||||
# The created pdf is not reproducible. But the converted image should always look the same.
|
||||
expected_hash = self.imagehash(html_email_thumbnail_file)
|
||||
|
||||
assert (
|
||||
generated_thumbnail_hash == expected_hash
|
||||
), f"PDF looks different. Check if {generated_thumbnail} looks weird."
|
||||
assert generated_thumbnail_hash == expected_hash, (
|
||||
f"PDF looks different. Check if {generated_thumbnail} looks weird."
|
||||
)
|
||||
|
@@ -455,8 +455,7 @@ class RasterisedDocumentParser(DocumentParser):
|
||||
self.text = text_original
|
||||
else:
|
||||
self.log.warning(
|
||||
f"No text was found in {document_path}, the content will "
|
||||
f"be empty.",
|
||||
f"No text was found in {document_path}, the content will be empty.",
|
||||
)
|
||||
self.text = ""
|
||||
|
||||
|
Reference in New Issue
Block a user