Skip to content

chore: import datetime as dt for ruff 0.17 - #266

Merged
lesnik512 merged 1 commit into
mainfrom
ruff-017-icn
Oct 10, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
ruff-017-icn

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

ruff 0.17.0, released 2026-10-09, enforces the datetime to dt import convention by default (ICN001), so ruff check fails on main. This applies ruff's own fix in the 12 file(s) that import datetime: import datetime as dt. None of them already used the name dt.

Test plan

  • ruff check and ruff format --check pass with ruff 0.17.0 and with the version the repo locks
  • mypy, pyrefly
  • the test suite passes locally

@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tests/container.py 100.00% <100.00%> (ø)
tests/creators.py 100.00% <100.00%> (ø)
tests/integrations/fastapi/test_fastapi_di.py 100.00% <100.00%> (ø)
...ests/integrations/faststream/test_faststream_di.py 100.00% <100.00%> (ø)
...s/integrations/litestar/test_litestar_di_simple.py 100.00% <100.00%> (ø)
tests/providers/test_context_resources.py 100.00% <100.00%> (ø)
tests/providers/test_main_providers.py 100.00% <100.00%> (ø)
tests/providers/test_providers_overriding.py 100.00% <100.00%> (ø)
tests/providers/test_selector.py 100.00% <100.00%> (ø)
tests/test_dynamic_container.py 100.00% <100.00%> (ø)
... and 2 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lesnik512
lesnik512 merged commit b674cf6 into main Oct 10, 2026
18 checks passed
@lesnik512
lesnik512 deleted the ruff-017-icn branch October 10, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant