Skip to content

Commit

Permalink
libcovebods: Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Sep 23, 2024
1 parent 35d3d63 commit aeba062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libcovebods/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def parse_date_field(date_str):
elif re.match(r"^[0-9]{4}-[0-9]{1,2}$", date_str):
return datetime.datetime.strptime(date_str, "%Y-%m").date()
else:
return datetime.datetime.fromisoformat(date_str.replace('Z', '+00:00')).date()
return datetime.datetime.fromisoformat(
date_str.replace("Z", "+00:00")
).date()
else:
return None

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# Required for jsonschema to validate date-time
"rfc3339-validator",
"jsonpointer",
"pycountry"
"pycountry",
],
extras_require={"dev": ["pytest", "flake8", "black==22.3.0", "isort", "mypy"]},
classifiers=[
Expand Down

0 comments on commit aeba062

Please sign in to comment.