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

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

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

InSyncWithFoo
Copy link
Contributor

Summary

Resolves #14378.

Test Plan

cargo nextest run and cargo insta test.

Copy link
Contributor

github-actions bot commented Nov 17, 2024

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
19 checks passed
@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