{ "info": { "author": "Albert Tugushev", "author_email": "albert@tugushev.ru", "bugtrack_url": null, "classifiers": [ "Framework :: Flake8", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Quality Assurance" ], "description": "[![PyPI version](https://img.shields.io/pypi/v/flake8-printf-formatting.svg)](https://pypi.org/project/flake8-printf-formatting/)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/flake8-printf-formatting.svg)](https://pypi.org/project/flake8-printf-formatting/)\n[![Build status](https://img.shields.io/travis/atugushev/flake8-printf-formatting/master.svg?logo=travis)](https://travis-ci.org/atugushev/flake8-printf-formatting)\n[![Coverage](https://codecov.io/gh/atugushev/flake8-printf-formatting/branch/master/graph/badge.svg)](https://codecov.io/gh/atugushev/flake8-printf-formatting)\n\nflake8-printf-formatting\n========================\n\nflake8 plugin which forbids printf-style string formatting\n\n## Installation\n\n`pip install flake8-printf-formatting`\n\n## Codes\n\n| Code | Description |\n|--------|-------------------------------------------|\n| MOD001 | do not use printf-style string formatting |\n\n## Rationale\n\nThe official Python 3 documentation [doesn't recommend](https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting)\nprintf-style string formatting:\n\n> The formatting operations described here exhibit a variety of quirks that\n> lead to a number of common errors (such as failing to display tuples and\n> dictionaries correctly). Using the newer formatted string literals,\n> the `str.format` interface, or template strings may help avoid these errors.\n> Each of these alternatives provides their own trade-offs and benefits of simplicity,\n> flexibility, and/or extensibility.\n\n## As a pre-commit hook\n\nSee [pre-commit](https://github.com/pre-commit/pre-commit) for instructions\n\nSample `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://gitlab.com/pycqa/flake8\n rev: 3.7.8\n hooks:\n - id: flake8\n additional_dependencies: [flake8-printf-formatting]\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/atugushev/flake8-printf-formatting", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flake8-printf-formatting", "package_url": "https://pypi.org/project/flake8-printf-formatting/", "platform": "", "project_url": "https://pypi.org/project/flake8-printf-formatting/", "project_urls": { "Homepage": "https://github.com/atugushev/flake8-printf-formatting" }, "release_url": "https://pypi.org/project/flake8-printf-formatting/1.1.0/", "requires_dist": [ "flake8", "importlib-metadata" ], "requires_python": ">=3.6", "summary": "flake8 plugin which forbids printf-style string formatting", "version": "1.1.0" }, "last_serial": 5896128, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "926ecb6558e433c14131460b2d052a25", "sha256": "d3623f5b99632d1bd8d8cc4c0cf6ba8a364821f602c2da38953e59e15a9bc35d" }, "downloads": -1, "filename": "flake8_printf_formatting-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "926ecb6558e433c14131460b2d052a25", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 3762, "upload_time": "2019-09-07T20:38:03", "url": "https://files.pythonhosted.org/packages/3a/4d/ae2ed5113f61cc518f50dab79880a2d478cfb1e01a326b1f696b1b7afd5c/flake8_printf_formatting-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44b6ea6926c4e2c2df36f9d588840af4", "sha256": "e0406ef32badd28e445d7a2bcc8fb5fccedef7414716ac236310be85f49789bc" }, "downloads": -1, "filename": "flake8-printf-formatting-1.0.0.tar.gz", "has_sig": false, "md5_digest": "44b6ea6926c4e2c2df36f9d588840af4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3273, "upload_time": "2019-09-07T20:38:05", "url": "https://files.pythonhosted.org/packages/09/3c/be5000d5c900c48f9121f1fa1f18f767ee3630eed58d966d5177b932e386/flake8-printf-formatting-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ef30263525a614eb9aa4934696e8faaa", "sha256": "8a07bebb8a93828cc5730be6d0e355776f1d38caf91aa7691c1585f94878f99c" }, "downloads": -1, "filename": "flake8_printf_formatting-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef30263525a614eb9aa4934696e8faaa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 3864, "upload_time": "2019-09-27T13:31:44", "url": "https://files.pythonhosted.org/packages/9e/f2/19a5a5e2f016a2a27d59bbfa29b88336ebd677a1d5217f8ba9866bdaa048/flake8_printf_formatting-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb3d1a6aea3b9531f7322608bcb12338", "sha256": "54971eaeef6f4cea4ce27559377fb4d00a2a0d9790ca46421ba5b0e00ed5e6e4" }, "downloads": -1, "filename": "flake8-printf-formatting-1.1.0.tar.gz", "has_sig": false, "md5_digest": "eb3d1a6aea3b9531f7322608bcb12338", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3381, "upload_time": "2019-09-27T13:31:46", "url": "https://files.pythonhosted.org/packages/82/f9/82f56d7351182fa2deafa0e9ca04dcf87a071ca36e0811674212ad781057/flake8-printf-formatting-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef30263525a614eb9aa4934696e8faaa", "sha256": "8a07bebb8a93828cc5730be6d0e355776f1d38caf91aa7691c1585f94878f99c" }, "downloads": -1, "filename": "flake8_printf_formatting-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef30263525a614eb9aa4934696e8faaa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 3864, "upload_time": "2019-09-27T13:31:44", "url": "https://files.pythonhosted.org/packages/9e/f2/19a5a5e2f016a2a27d59bbfa29b88336ebd677a1d5217f8ba9866bdaa048/flake8_printf_formatting-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb3d1a6aea3b9531f7322608bcb12338", "sha256": "54971eaeef6f4cea4ce27559377fb4d00a2a0d9790ca46421ba5b0e00ed5e6e4" }, "downloads": -1, "filename": "flake8-printf-formatting-1.1.0.tar.gz", "has_sig": false, "md5_digest": "eb3d1a6aea3b9531f7322608bcb12338", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3381, "upload_time": "2019-09-27T13:31:46", "url": "https://files.pythonhosted.org/packages/82/f9/82f56d7351182fa2deafa0e9ca04dcf87a071ca36e0811674212ad781057/flake8-printf-formatting-1.1.0.tar.gz" } ] }