Updates some Python dependencies and the hooks

This commit is contained in:
Trenton H
2023-07-20 11:02:33 -07:00
parent bd9cd14fd9
commit dbcf040dde
17 changed files with 371 additions and 350 deletions

View File

@@ -247,7 +247,7 @@ class DocumentClassifier:
data_vectorized = self.data_vectorizer.fit_transform(content_generator())
# See the notes here:
# https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html # noqa: 501
# https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html # noqa: E501
# This attribute isn't needed to function and can be large
self.data_vectorizer.stop_words_ = None

View File

@@ -2,6 +2,7 @@ import hashlib
import os
import shutil
from pathlib import Path
from typing import Optional
from unittest import mock
from django.conf import settings
@@ -60,8 +61,8 @@ def make_test_document(
mime_type: str,
original: str,
original_filename: str,
archive: str = None,
archive_filename: str = None,
archive: Optional[str] = None,
archive_filename: Optional[str] = None,
):
doc = document_class()
doc.filename = original_filename