{ "info": { "author": "Fabian Neundorf", "author_email": "CommodoreFabianus@gmx.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Framework :: Flake8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance" ], "description": "__future__ import checker\n=========================\n\n.. image:: https://secure.travis-ci.org/xZise/flake8-future-import.png?branch=0.4.6\n :alt: Build Status\n :target: https://travis-ci.org/xZise/flake8-future-import\n\n.. image:: https://codecov.io/gh/xZise/flake8-future-import/branch/master/graph/badge.svg\n :alt: Coverage Status\n :target: https://codecov.io/gh/xZise/flake8-future-import\n\n.. image:: https://badge.fury.io/py/flake8-future-import.svg\n :alt: Pypi Entry\n :target: https://pypi.python.org/pypi/flake8-future-import\n\nA script to check for the imported ``__future__`` modules to make it easier to\nhave a consistent code base.\n\nBy default it requires and forbids all imports but it's possible to have\ncertain imports optional by ignoring both their requiring and forbidding error\ncode. In the future it's planned to have a \u201cconsistency\u201d mode and that the\ndefault is having the import optional or required (not sure on that yet).\n\nThis module provides a plugin for ``flake8``, the Python code checker.\n\n\nStandalone script\n-----------------\n\nThe checker can be used directly::\n\n $ python -m flake8-import --ignore FI10,FI11,FI12,FI13,FI15,FI5 some_file.py\n some_file.py:1:1: FI14 __future__ import \"unicode_literals\" missing\n\nEven though ``flake8`` still uses ``optparse`` this script in standalone mode\nis using ``argparse``.\n\n\nPlugin for Flake8\n-----------------\n\nWhen both ``flake8 2.0`` and ``flake8-future-imports`` are installed, the plugin\nis available in ``flake8``::\n\n $ flake8 --version\n 3.5.0 (flake8-future-imports: 0.4.6, mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0)\n\nBy default the plugin will check for all the future imports but with\n``--ignore`` it's possible to define which imports from ``__future__`` are\noptional, required or forbidden. It will emit a warning if necessary imports\nare missing::\n\n $ flake8 --ignore FI10,FI11,FI12,FI13,FI15,FI5 some_file.py\n ...\n some_file.py:1:1: FI14 __future__ import \"unicode_literals\" missing\n\n\nParameters\n----------\n\nThis module adds one parameter:\n\n* ``--require-code``: Doesn't complain on files which only contain comments or\n strings (and by extension docstrings). Corresponds to ``require-code = True``\n in the ``tox.ini``.\n* ``--min-version``: Define the minimum version supported by the project. Any\n features already mandatory or not available won't cause a warning when they\n are missing. Corresponds to ``min-version = \u2026`` in the ``tox.ini``.\n\nThe stand alone version also mimics flake8's ignore parameter.\n\n\nError codes\n-----------\n\nThis plugin is using the following error codes:\n\n+------+--------------------------------------------------+\n| FI10 | ``__future__`` import \"division\" missing |\n+------+--------------------------------------------------+\n| FI11 | ``__future__`` import \"absolute_import\" missing |\n+------+--------------------------------------------------+\n| FI12 | ``__future__`` import \"with_statement\" missing |\n+------+--------------------------------------------------+\n| FI13 | ``__future__`` import \"print_function\" missing |\n+------+--------------------------------------------------+\n| FI14 | ``__future__`` import \"unicode_literals\" missing |\n+------+--------------------------------------------------+\n| FI15 | ``__future__`` import \"generator_stop\" missing |\n+------+--------------------------------------------------+\n| FI16 | ``__future__`` import \"nested_scopes\" missing |\n+------+--------------------------------------------------+\n| FI17 | ``__future__`` import \"generators\" missing |\n+------+--------------------------------------------------+\n| FI12 | ``__future__`` import \"annotations\" missing |\n+------+--------------------------------------------------+\n+------+--------------------------------------------------+\n| FI50 | ``__future__`` import \"division\" present |\n+------+--------------------------------------------------+\n| FI51 | ``__future__`` import \"absolute_import\" present |\n+------+--------------------------------------------------+\n| FI52 | ``__future__`` import \"with_statement\" present |\n+------+--------------------------------------------------+\n| FI53 | ``__future__`` import \"print_function\" present |\n+------+--------------------------------------------------+\n| FI54 | ``__future__`` import \"unicode_literals\" present |\n+------+--------------------------------------------------+\n| FI55 | ``__future__`` import \"generator_stop\" present |\n+------+--------------------------------------------------+\n| FI56 | ``__future__`` import \"nested_scopes\" present |\n+------+--------------------------------------------------+\n| FI57 | ``__future__`` import \"generators\" present |\n+------+--------------------------------------------------+\n| FI58 | ``__future__`` import \"annotations\" present |\n+------+--------------------------------------------------+\n+------+--------------------------------------------------+\n| FI90 | ``__future__`` import does not exist |\n+------+--------------------------------------------------+\n\nFor a sensible usage, for each import either or both error code need to be\nignored as it will otherwise always complain either because it's present or\nbecause it is not. The corresponding other error code can be determined by\nadding or subtracting 40.\n\n* Ignoring the **lower** one will **forbid** the import\n* Ignoring the **higher** one will **require** the import\n* Ignoring **both** will make the import **optional**\n\nThe plugin is always producing errors about missing and present imports and\n``flake8`` actually does ignore then the codes accordingly. So the plugin does\nnot know that an import is allowed and forbidden at the same time and thus\ncannot skip reporting those imports.\n\n\nChanges\n-------\n\n0.4.6 - 2019-08-04\n``````````````````\n* Add new ``annotations`` feature.\n\n0.4.5 - 2018-04-15\n``````````````````\n* Support pip version 10 in the tests.\n* Add ``LICENSE`` and ``test_flake8_future_import.py`` to the source\n distribution.\n\n0.4.4 - 2018-01-05\n``````````````````\n* Add ``Flake8`` framework classifier.\n\n0.4.3 - 2016-07-01\n``````````````````\n* When using Flake8 version 2, it wasn't correctly looking for the options in\n the ``tox.ini`` file. This is restoring the old behaviour there.\n\n0.4.2 - 2016-07-01\n``````````````````\n* Support flake8 version 3's new config option interface\n* Do not increase offset by one in the standalone variant, like flake8 does\n with version 3\n\n0.4.1 - 2016-05-30\n``````````````````\n* Do not ignore imports which are present and have been added after the minimum\n version\n* Ignore imports which became mandatory with the minimum version\n\n0.4.0 - 2016-05-30\n``````````````````\n* Add two older ``future`` imports\n* Issue an error when a future import does not exist\n* Define which is the oldest Python version to be supported so that already\n mandatory features can be ignored and not yet supported features default to\n forbidden (ignoring the lower error code).\n* Use return code of 1 if errors occurred\n\n0.3.2 - 2015-10-18\n``````````````````\n* Prevent errors when using unknown future imports\n* Test several examples for bad future imports from the Python library\n* Fixed the README to use present for the higher codes\n\n0.3.1 - 2015-09-07\n``````````````````\n* Support setting ``--require-code`` in the ``tox.ini``\n\n0.3.0 - 2015-09-07\n``````````````````\n* Using a different error code namespace (FIXX)\n* Add error codes returned when an import is present\n* Removed ``nested_scopes`` and ``generators`` from the available list\n* Skip files which only contains comments and strings\n\n0.2.1 - 2015-08-10\n``````````````````\n* Fixed the module and URL in setup.py\n* Fixed the name in the script itself\n\n0.2 - 2015-08-10\n````````````````\n* Instead of parameters it's now using error codes to define which futures are\n missing. This is removing the ability to forbid a future for now.\n\n0.1 - 2015-08-08\n````````````````\n* First release\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xZise/flake8-future-import", "keywords": "flake8 import future", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "flake8-future-import", "package_url": "https://pypi.org/project/flake8-future-import/", "platform": "", "project_url": "https://pypi.org/project/flake8-future-import/", "project_urls": { "Homepage": "https://github.com/xZise/flake8-future-import" }, "release_url": "https://pypi.org/project/flake8-future-import/0.4.6/", "requires_dist": [ "flake8" ], "requires_python": "", "summary": "__future__ import checker, plugin for flake8", "version": "0.4.6" }, "last_serial": 5630581, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "373ace75dd70587a41925e5208f7bb21", "sha256": "9d76adef4a68b970d9696cd3d5f1757f52c86b90f6851eeafddf1c25a761dcb2" }, "downloads": -1, "filename": "flake8_future_import-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "373ace75dd70587a41925e5208f7bb21", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7409, "upload_time": "2015-09-07T12:51:59", "url": "https://files.pythonhosted.org/packages/e3/b0/31892db1361ee25b143bba5fce883f9aba6e676c719dff8e9e96c535fed8/flake8_future_import-0.3.0-py2.py3-none-any.whl" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "0ab1f7477ea1d2bb0dbe7ca19b78c632", "sha256": "8cebf8711151ebab6a53d542451c345c8b420560d66944c4de0201fd84b3c032" }, "downloads": -1, "filename": "flake8_future_import-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0ab1f7477ea1d2bb0dbe7ca19b78c632", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7906, "upload_time": "2015-09-07T15:25:46", "url": "https://files.pythonhosted.org/packages/8b/e5/bce871cb7cfebba2cd2e086a2ecaf41ce9b237f64f6a48781821312354dc/flake8_future_import-0.3.1-py2.py3-none-any.whl" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "1d748c8bf0af94f53c558537976b2cf8", "sha256": "3a0955e38c6b58596fcfcbbdd816aaeede3e2e9e01c9a7709e566f3c0d155427" }, "downloads": -1, "filename": "flake8_future_import-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d748c8bf0af94f53c558537976b2cf8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8097, "upload_time": "2015-10-18T19:34:21", "url": "https://files.pythonhosted.org/packages/3f/f5/cc492b383e7f99c5044c49a27bf86562f55335125b1d87c46605884631a0/flake8_future_import-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f5114ba4a8f4647cb36a1aecc71824b", "sha256": "9d5b80fda5ff92df77bbc88f9b69e11b00da33c89012b031bca47811f78d306e" }, "downloads": -1, "filename": "flake8-future-import-0.3.2.tar.gz", "has_sig": false, "md5_digest": "3f5114ba4a8f4647cb36a1aecc71824b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5298, "upload_time": "2015-10-18T19:34:27", "url": "https://files.pythonhosted.org/packages/e7/4c/120bc70a609d1d57fd3ba22a32b3c4c066c2f16bc0e116440a604482e522/flake8-future-import-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "0421ced956c0717a97a18be4ac5c389c", "sha256": "4fc7eaf18e706d9b356da9757f5ac3a31fba437e3f91144e03439acaef0780db" }, "downloads": -1, "filename": "flake8_future_import-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0421ced956c0717a97a18be4ac5c389c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9527, "upload_time": "2016-05-30T10:24:26", "url": "https://files.pythonhosted.org/packages/b5/82/0c49f989e18ef1ead3d9d7cbfcaade08d99739b7e2e27267fc34442889c2/flake8_future_import-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2578cb460341aa978089984539314680", "sha256": "660f92f913f80deac114b6e7290b1d7bfadc78405fedc9a6431c476563ed8784" }, "downloads": -1, "filename": "flake8-future-import-0.4.0.tar.gz", "has_sig": false, "md5_digest": "2578cb460341aa978089984539314680", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6563, "upload_time": "2016-05-30T10:24:30", "url": "https://files.pythonhosted.org/packages/21/ce/601c229ce777487538360afefc755ca719b62b4339b7e42c3f022a812c5c/flake8-future-import-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "3359d2dd4ff7703c5708e57d28f33f04", "sha256": "8ec6d0a48700beacf17aeafca578558be0af959d29e8649a60c972ee1307d564" }, "downloads": -1, "filename": "flake8_future_import-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3359d2dd4ff7703c5708e57d28f33f04", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9606, "upload_time": "2016-05-30T18:21:05", "url": "https://files.pythonhosted.org/packages/98/2d/a7ac9287137df1b1a5fbd4c806af101f1ab0f4eda7b89f3cf84a5f81dc72/flake8_future_import-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3a46929a15585d37e6242f53d0cb3a6", "sha256": "d016e313ccf87639a1e405aed6cabb7d40ecb28f4ef088a0f136e5637b716dd0" }, "downloads": -1, "filename": "flake8-future-import-0.4.1.tar.gz", "has_sig": false, "md5_digest": "d3a46929a15585d37e6242f53d0cb3a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6610, "upload_time": "2016-05-30T18:26:54", "url": "https://files.pythonhosted.org/packages/57/ff/061103ea215d66ef6b0a5b80cfef2b6216a32519af0f55d1c51a4cc738ea/flake8-future-import-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "a25aed1d6159f645c132ed9fb9e5388c", "sha256": "edde3e95f64b14ea9a431236406e2fa5797328ce4db245824c2f39b563798f15" }, "downloads": -1, "filename": "flake8_future_import-0.4.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a25aed1d6159f645c132ed9fb9e5388c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9788, "upload_time": "2016-07-01T10:14:12", "url": "https://files.pythonhosted.org/packages/ca/99/ebb69c995e5e5652fd166bd82a6fdafe2bb5e6879b60f4adc352b2475fd4/flake8_future_import-0.4.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8fad14b2c0dda31f81d237b1f20a0629", "sha256": "5435805bd8014e59d730f8e1cc25786858f1f42bf96630da89aa29ef8b5c3a51" }, "downloads": -1, "filename": "flake8-future-import-0.4.2.tar.gz", "has_sig": false, "md5_digest": "8fad14b2c0dda31f81d237b1f20a0629", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6738, "upload_time": "2016-07-01T10:14:15", "url": "https://files.pythonhosted.org/packages/60/0b/9eb876b95b174149ace000111acaf3e08183a3696032ab8d7974d9e2fbc7/flake8-future-import-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "8ce564cc0179b0a797cc8a5b5b4a3fed", "sha256": "04dffb2f8203581ecf35454a1f07281d46169c67027bcc682bbc194a82946c23" }, "downloads": -1, "filename": "flake8_future_import-0.4.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8ce564cc0179b0a797cc8a5b5b4a3fed", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9902, "upload_time": "2016-07-01T20:25:17", "url": "https://files.pythonhosted.org/packages/1c/b5/2df52d680f2c1824096f84d7b0dcea0a3d554603103a547c85bd6099a3b6/flake8_future_import-0.4.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff1413dd65788bd5ed6daa1dc964c8e0", "sha256": "a477335324172a0de9c4f91a00d2fcba2fe4063ef65fea2101025a878b3ff404" }, "downloads": -1, "filename": "flake8-future-import-0.4.3.tar.gz", "has_sig": false, "md5_digest": "ff1413dd65788bd5ed6daa1dc964c8e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6805, "upload_time": "2016-07-01T20:25:22", "url": "https://files.pythonhosted.org/packages/08/53/48d40982c17f0b97013c2525f99f68844969d57322d3693b113e720daf98/flake8-future-import-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "7d049f938619786119ec3fee9de4a5ae", "sha256": "57b8227c93a8725845eb567abd28e06c1c56586edc4d44ec05dc12a53fd0e1a1" }, "downloads": -1, "filename": "flake8_future_import-0.4.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d049f938619786119ec3fee9de4a5ae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10025, "upload_time": "2018-01-05T22:44:05", "url": "https://files.pythonhosted.org/packages/9a/f1/8b2f0f5ae8c6a374ead6fa2617a7fdfb865587903781f6279241b57e61d3/flake8_future_import-0.4.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97db33accf359d146832fe596b1b7143", "sha256": "7257b50c4d688b01761220942a11623e6854df60a7f16aa9bc0f0d1dd47e2f03" }, "downloads": -1, "filename": "flake8-future-import-0.4.4.tar.gz", "has_sig": false, "md5_digest": "97db33accf359d146832fe596b1b7143", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6869, "upload_time": "2018-01-05T22:44:07", "url": "https://files.pythonhosted.org/packages/a3/9d/46d84e24053db24a368947903e0ed12c02c54c7b4cd34c569780d1c7dba3/flake8-future-import-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "b991fc0d17d09d657414d364a8bd4f32", "sha256": "3e51623208684133bff6c76b3ccc707659e96229e89f6bebd3fface445fa8154" }, "downloads": -1, "filename": "flake8_future_import-0.4.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b991fc0d17d09d657414d364a8bd4f32", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10159, "upload_time": "2018-04-15T12:55:28", "url": "https://files.pythonhosted.org/packages/91/a3/c65ac46c64d49da4276bb46988e9e37293cb2321fc53abbc69d31e94556f/flake8_future_import-0.4.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e99d25beb1d2e8fd473ebb9643fa2713", "sha256": "0c89030fd59912b5f0ac32e55df2461455c1d459e4317df616ce8d3d25646cc0" }, "downloads": -1, "filename": "flake8-future-import-0.4.5.tar.gz", "has_sig": false, "md5_digest": "e99d25beb1d2e8fd473ebb9643fa2713", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10802, "upload_time": "2018-04-15T12:55:29", "url": "https://files.pythonhosted.org/packages/9c/75/80e560bf12565baa3a56d52fe2034fa2dd8712575ad2079a89f7d57afe43/flake8-future-import-0.4.5.tar.gz" } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "288facc9447352704209734b79dfedd8", "sha256": "dceb036a81744b59a9ca34811b8a9f952a3585c95eaebdda15e8b04dafc77595" }, "downloads": -1, "filename": "flake8_future_import-0.4.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "288facc9447352704209734b79dfedd8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10330, "upload_time": "2019-08-04T13:09:14", "url": "https://files.pythonhosted.org/packages/55/df/8e961da5a3e427be2ceaf374223e34394c7941c7000495e3ef9eafc560f0/flake8_future_import-0.4.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a2360d0d57e230a3b47c6287cbc58839", "sha256": "9711df0394a2bb5af47986a816cafc2e7f20db9ebc729676553e13df6cabbcf8" }, "downloads": -1, "filename": "flake8-future-import-0.4.6.tar.gz", "has_sig": false, "md5_digest": "a2360d0d57e230a3b47c6287cbc58839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10939, "upload_time": "2019-08-04T13:09:16", "url": "https://files.pythonhosted.org/packages/9d/a5/7e22266ca3c6ac59f0256d2a045652b47d74f1cdc158efd21f2d28599279/flake8-future-import-0.4.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "288facc9447352704209734b79dfedd8", "sha256": "dceb036a81744b59a9ca34811b8a9f952a3585c95eaebdda15e8b04dafc77595" }, "downloads": -1, "filename": "flake8_future_import-0.4.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "288facc9447352704209734b79dfedd8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10330, "upload_time": "2019-08-04T13:09:14", "url": "https://files.pythonhosted.org/packages/55/df/8e961da5a3e427be2ceaf374223e34394c7941c7000495e3ef9eafc560f0/flake8_future_import-0.4.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a2360d0d57e230a3b47c6287cbc58839", "sha256": "9711df0394a2bb5af47986a816cafc2e7f20db9ebc729676553e13df6cabbcf8" }, "downloads": -1, "filename": "flake8-future-import-0.4.6.tar.gz", "has_sig": false, "md5_digest": "a2360d0d57e230a3b47c6287cbc58839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10939, "upload_time": "2019-08-04T13:09:16", "url": "https://files.pythonhosted.org/packages/9d/a5/7e22266ca3c6ac59f0256d2a045652b47d74f1cdc158efd21f2d28599279/flake8-future-import-0.4.6.tar.gz" } ] }