Skip to content

Commit

Permalink
adjusted the pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Olthoff231381 committed Sep 2, 2024
1 parent 69a8864 commit 44c2ebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mailcom/inout.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def list_of_files(directory_name: str) -> list[Path]:
return email_list


def get_text(name):
with open(name, 'rb') as fhdl:
def get_text(file):
with open(file, 'rb') as fhdl:
raw_email = fhdl.read()
ep = eml_parser.EmlParser(include_raw_body=True)
parsed_eml = ep.decode_email_bytes(raw_email)
Expand All @@ -35,7 +35,6 @@ def get_text(name):
"attachement type": attachmenttypes
}
return(email_content["content"])

Check warning on line 37 in mailcom/inout.py

View check run for this annotation

Codecov / codecov/patch

mailcom/inout.py#L37

Added line #L37 was not covered by tests
return content


def delete_header(text):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ version = "0.0.1"
dependencies = [
"spacy",
"transformers",
"eml_parser"
]

[project.optional-dependencies]
Expand Down

0 comments on commit 44c2ebe

Please sign in to comment.