Skip to content

Bump flake8-datetimez from 20.10.0 to 26.8.1 in /{{cookiecutter.repo_name}} - #80

Merged
sliverc merged 1 commit into
mainfrom
dependabot/pip/{{cookiecutter.repo_name}}/flake8-datetimez-26.8.1
Aug 17, 2026
Merged

Bump flake8-datetimez from 20.10.0 to 26.8.1 in /{{cookiecutter.repo_name}}#80
sliverc merged 1 commit into
mainfrom
dependabot/pip/{{cookiecutter.repo_name}}/flake8-datetimez-26.8.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 17, 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 dependencies Pull requests that update a dependency file python Pull requests that update python code labels Aug 17, 2026
@sliverc
sliverc merged commit 66adfd9 into main Aug 17, 2026
6 checks passed
@sliverc
sliverc deleted the dependabot/pip/{{cookiecutter.repo_name}}/flake8-datetimez-26.8.1 branch August 17, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant