Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parisa-zahedi committed Jul 25, 2024
1 parent 265740a commit 4e392cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dataQuest/filter/document_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def filter_document(self, document: Document) -> bool:
return False
return True


class DecadeFilter(DocumentFilter):
"""
Filter documents by decade.
Expand Down
1 change: 1 addition & 0 deletions dataQuest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def load_filters_from_config(config_file: Path) -> AndFilter:
compound_filter = AndFilter(filters)
return compound_filter


def get_keywords_from_config(config_file: Path) -> List[str]:
"""
Extract keywords from a JSON configuration file.
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ classifiers = [
]
dynamic = ["version"]

dependencies = ["tqdm","pandas","pandas-stubs", "types-tqdm","spacy","scikit-learn","numpy","scipy"
dependencies = ["tqdm","pandas","pandas-stubs", "types-tqdm","spacy","scikit-learn","numpy","scipy",
"flake8-pyproject"
]

[project.optional-dependencies]
Expand Down

0 comments on commit 4e392cb

Please sign in to comment.