Upgrades black to v23, upgrades ruff

This commit is contained in:
Trenton H committed 2023-04-26 09:35:27 -07:00
1 parent 3bcbd05252
commit 6f163111ce
147 files changed
+74 -387

No files matched your search

-3
View File
@@ -65,7 +65,6 @@ def train_classifier():
and not Correspondent.objects.filter(matching_algorithm=Tag.MATCH_AUTO).exists()
and not StoragePath.objects.filter(matching_algorithm=Tag.MATCH_AUTO).exists()
):
return
classifier = load_classifier()
@@ -91,7 +90,6 @@ def consume_file(
input_doc: ConsumableDocument,
overrides: Optional[DocumentMetadataOverrides] = None,
):
# Default no overrides
if overrides is None:
overrides = DocumentMetadataOverrides()
@@ -117,7 +115,6 @@ def consume_file(
)
if document_list:
# If the file is an upload, it's in the scratch directory
# Move it to consume directory to be picked up
# Otherwise, use the current parent to keep possible tags