Skip to content

[flake8-datetimez] Also exempt .time() (DTZ901)#14394

Merged
charliermarsh merged 2 commits into
astral-sh:mainfrom
InSyncWithFoo:DTZ901
Nov 18, 2024
Merged

[flake8-datetimez] Also exempt .time() (DTZ901)#14394
charliermarsh merged 2 commits into
astral-sh:mainfrom
InSyncWithFoo:DTZ901

Conversation

@InSyncWithFoo

Copy link
Copy Markdown
Contributor

Summary

Resolves #14378.

Test Plan

cargo nextest run and cargo insta test.

@github-actions

github-actions Bot commented Nov 17, 2024

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+0 -1 violations, +0 -0 fixes in 1 projects; 53 projects unchanged)

bokeh/bokeh (+0 -1 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL

- examples/models/daylight.py:83:12: DTZ901 Use of `datetime.datetime.min` without timezone information

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
DTZ901 1 0 1 0 0

@charliermarsh charliermarsh added the bug Something isn't working label Nov 18, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) November 18, 2024 02:18
@charliermarsh charliermarsh merged commit 3c9e76e into astral-sh:main Nov 18, 2024
@InSyncWithFoo InSyncWithFoo deleted the DTZ901 branch November 18, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DTZ901 Instead of warning replace datetime.datetime.min.time() with datetime.time.min

2 participants