Skip to content

Commit

Permalink
Merge pull request #75 from bento-platform/chore/update-and-rm-deprec…
Browse files Browse the repository at this point in the history
…ated

chore: remove deprecated datetime uses + update lockfile
  • Loading branch information
davidlougheed authored Apr 11, 2024
2 parents 5beeb5a + 8a6d7c2 commit 6c4d8c5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: python -m pip install poetry==1.8.1
run: python -m pip install poetry==1.8.2
- name: Install dependencies
run: python -m poetry install
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions bento_wes/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import datetime
from datetime import datetime, timezone


__all__ = ["iso_now"]


def iso_now() -> str:
return datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ") # ISO date format
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") # ISO date format
33 changes: 17 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ allowlist_externals =
mkdir
poetry
commands =
poetry install
poetry install --sync
mkdir -p ./tmp
poetry run pytest -svv --cov=bento_wes --cov-branch {posargs}
poetry run flake8 ./bento_wes ./tests

0 comments on commit 6c4d8c5

Please sign in to comment.