{ "info": { "author": "Jungkook Park", "author_email": "jk@elicer.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Framework :: Flake8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance" ], "description": "# flake8-datetimez\n\nA plugin for flake8 to ban the usage of unsafe naive datetime class.\n\n\n## List of warnings\n\n- **DTZ001** : The use of `datetime.datetime()` without `tzinfo` argument is not allowed.\n\n- **DTZ002** : The use of `datetime.datetime.today()` is not allowed. Use `datetime.datetime.now(tz=)` instead.\n\n- **DTZ003** : The use of `datetime.datetime.utcnow()` is not allowed. Use `datetime.datetime.now(tz=)` instead.\n\n- **DTZ004** : The use of `datetime.datetime.utcfromtimestamp()` is not allowed. Use `datetime.datetime.fromtimestamp(, tz=)` instead.\n\n- **DTZ005** : The use of `datetime.datetime.now()` without `tz` argument is not allowed.\n\n- **DTZ006** : The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed.\n\n- **DTZ007** : The use of `datetime.datetime.strptime()` must be followed by `.replace(tzinfo=)`.\n\n- **DTZ011** : The use of `datetime.date.today()` is not allowed. Use `datetime.datetime.now(tz=).date()` instead.\n\n- **DTZ012** : The use of `datetime.date.fromtimestamp()` is not allowed. Use `datetime.datetime.fromtimestamp(, tz=).date()` instead.\n\n\n## Install\n\nInstall with pip\n\n```\n$ pip install flake8-datetimez\n```\n\n## Requirements\n- Python 3.6 or above\n- flake8 3.0.0 or above\n\n## License\n\nMIT", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pjknkda/flake8-datetimez", "keywords": "flake8 datetime pyflakes pylint linter qa", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flake8-datetimez", "package_url": "https://pypi.org/project/flake8-datetimez/", "platform": "", "project_url": "https://pypi.org/project/flake8-datetimez/", "project_urls": { "Homepage": "https://github.com/pjknkda/flake8-datetimez" }, "release_url": "https://pypi.org/project/flake8-datetimez/19.5.4.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "A plugin for flake8 to ban the usage of unsafe naive datetime class.", "version": "19.5.4.0" }, "last_serial": 5336077, "releases": { "19.4.4.0": [ { "comment_text": "", "digests": { "md5": "168fd3064c6cd805b7306507e24c0a4d", "sha256": "6d319553c45a6a4236bc6014b624cd1315aab722d68dff45e2aea233a3cef8aa" }, "downloads": -1, "filename": "flake8-datetimez-19.4.4.0.tar.gz", "has_sig": false, "md5_digest": "168fd3064c6cd805b7306507e24c0a4d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2889, "upload_time": "2019-04-25T18:57:33", "url": "https://files.pythonhosted.org/packages/c2/c7/69508d9bd71290cf587eda0d9ba7c388acef090ed18971101543a9f84199/flake8-datetimez-19.4.4.0.tar.gz" } ], "19.4.5.0": [ { "comment_text": "", "digests": { "md5": "8c98f5df6e8add0dd8f4572f31366b53", "sha256": "3b5003ea03582bb1cbe0858a63e05b421a6cbbdc849a26ce37796ea1df7dcd69" }, "downloads": -1, "filename": "flake8-datetimez-19.4.5.0.tar.gz", "has_sig": false, "md5_digest": "8c98f5df6e8add0dd8f4572f31366b53", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3241, "upload_time": "2019-04-30T10:28:29", "url": "https://files.pythonhosted.org/packages/15/cd/96a078119151740a072e0f3a851159da33a78345957721fabc20793d663a/flake8-datetimez-19.4.5.0.tar.gz" } ], "19.5.4.0": [ { "comment_text": "", "digests": { "md5": "1a97ad73e310df84f251a78619e3c114", "sha256": "b929592691422f2f04fc69562009249e38e31ec5e1ef6818e55c7d8749bb2765" }, "downloads": -1, "filename": "flake8-datetimez-19.5.4.0.tar.gz", "has_sig": false, "md5_digest": "1a97ad73e310df84f251a78619e3c114", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3884, "upload_time": "2019-05-30T07:15:41", "url": "https://files.pythonhosted.org/packages/d2/31/08bd6854e60863054df9b5daf728e822f1d963616a6f47830db374c183f4/flake8-datetimez-19.5.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a97ad73e310df84f251a78619e3c114", "sha256": "b929592691422f2f04fc69562009249e38e31ec5e1ef6818e55c7d8749bb2765" }, "downloads": -1, "filename": "flake8-datetimez-19.5.4.0.tar.gz", "has_sig": false, "md5_digest": "1a97ad73e310df84f251a78619e3c114", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3884, "upload_time": "2019-05-30T07:15:41", "url": "https://files.pythonhosted.org/packages/d2/31/08bd6854e60863054df9b5daf728e822f1d963616a6f47830db374c183f4/flake8-datetimez-19.5.4.0.tar.gz" } ] }