A flake8 plugin that flags usage of naive datetime objects, enforcing timezone-aware datetime handling. Current version 20.10.0, maintained infrequently (last release 2020).
pip install flake8-datetimezNo compatibility data collected yet for this library.
Install flake8 and the plugin, then run flake8 on a file with naive datetime usage.
Manually review code for other naive datetime patterns, or use additional tools like flake8-datetime-utcnow.
Ensure flake8 is installed and configured.
Update flake8 and all plugins; ensure files are UTF-8 encoded.
Remove any explicit import of 'flake8_datetimez' modules; simply add the package to the project and run flake8.