Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove deprecated datetime uses + update lockfile #75

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading