Skip to content

Bump flake8-datetimez from 20.10.0 to 26.8.1 - #325

Merged
frequenz-auto-dependabot[bot] merged 1 commit into
v0.x.xfrom
dependabot/pip/flake8-datetimez-26.8.1
Aug 25, 2026
Merged

Bump flake8-datetimez from 20.10.0 to 26.8.1#325
frequenz-auto-dependabot[bot] merged 1 commit into
v0.x.xfrom
dependabot/pip/flake8-datetimez-26.8.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 25, 2026

Copy link
Copy Markdown
Contributor

Bumps flake8-datetimez from 20.10.0 to 26.8.1.

Release notes

Sourced from flake8-datetimez's releases.

26.8.1

What's Changed

Full Changelog: pjknkda/flake8-datetimez@26.8.0...26.8.1

26.8.0

What's Changed

Breaking

  • Python 3.8 is now the minimum. Support for 3.6 and 3.7 is dropped — both have been end-of-life for years, and the checker already relied on ast.Constant, which only the 3.8+ parser produces. Tested on 3.8 through 3.14.

Added

  • DTZ901, for naive datetime.datetime.min and datetime.datetime.max. They overflow when converted to another timezone, and .timestamp() raises for any timezone west of UTC. The code matches Ruff's rule. Closes #13.

Changed

  • .astimezone() is accepted as a fix for DTZ001, DTZ002, DTZ005 and DTZ006, alongside DTZ007 which already did. It stays rejected for utcnow() and utcfromtimestamp(): those return a UTC wall clock, and reading it as local time shifts the instant by the local UTC offset rather than fixing it. Closes #9, #11.

Fixed

  • On Python 3.14, DTZ007 raised AttributeError and flake8 aborted on any file containing datetime.strptime(x, "..."), because the ast.Constant.s alias was removed.
  • datetime.n(), datetime.o() and datetime.w() were reported as now(), because the attribute was compared with a substring test.
  • The source of every linted file was read from disk a second time and discarded, even though flake8 already hands the plugin a parsed tree.

All of the above landed in pjknkda/flake8-datetimez#15, except the first step toward newer Python versions, contributed by @​Kristinita in pjknkda/flake8-datetimez#14.

Special thanks to @​sasanjac for pjknkda/flake8-datetimez#10. It could not be merged after the base moved on, which is on me, but the idea and the patch are what shaped how .astimezone() landed here.

Upgrading

On Python 3.6 or 3.7, stay on 20.10.0pip will not offer this release. Otherwise, expect new DTZ901 warnings and fewer .astimezone() warnings; nothing else changes.

For new projects, please prefer Ruff's DTZ rule set, which is faster and more actively maintained. This plugin remains for codebases that are still on flake8, and is maintained on a best-effort basis for backward compatibility.

New Contributors

Full Changelog: pjknkda/flake8-datetimez@20.10.0...26.8.0

Commits
  • 949ac73 fix: render the README as markdown on PyPI (#16)
  • 6fe6414 Refactor datetime checks, enhance linting, and update documentation (#15)
  • 19795d4 fix(python314): replace deprecated ast.NameConstant to ast.Constant (#14)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [flake8-datetimez](https://github.com/pjknkda/flake8-datetimez) from 20.10.0 to 26.8.1.
- [Release notes](https://github.com/pjknkda/flake8-datetimez/releases)
- [Commits](pjknkda/flake8-datetimez@20.10.0...26.8.1)

---
updated-dependencies:
- dependency-name: flake8-datetimez
  dependency-version: 26.8.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels Aug 25, 2026
@frequenz-auto-dependabot frequenz-auto-dependabot Bot added the tool:auto-merged PR was auto-merged by automation label Aug 25, 2026
@frequenz-auto-dependabot
frequenz-auto-dependabot Bot added this pull request to the merge queue Aug 25, 2026
Merged via the queue into v0.x.x with commit 7f7e792 Aug 25, 2026
30 checks passed
@frequenz-auto-dependabot
frequenz-auto-dependabot Bot deleted the dependabot/pip/flake8-datetimez-26.8.1 branch August 25, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) tool:auto-merged PR was auto-merged by automation type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants