{ "info": { "author": "Moccu GmbH & Co. KG", "author_email": "info@moccu.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "py.test plugin to check import ordering using isort\n===================================================\n\n.. image:: https://badge.fury.io/py/pytest-isort.svg\n :target: http://badge.fury.io/py/pytest-isort\n\n.. image:: https://travis-ci.org/moccu/pytest-isort.svg?branch=master\n :target: https://travis-ci.org/moccu/pytest-isort\n\n\nUsage\n-----\n\ninstall using ``pip``::\n\n pip install pytest-isort\n\nActivate isort checks when calling ``py.test``::\n\n py.test --isort\n\nThis will execute an isort check against every ``.py`` file (if its not ignored).\n\n\nExample\n-------\n\nGiven you have some files with incorrect sorted imports::\n\n # content of file1.py\n\n import os\n import sys\n import random\n\n # content of file2.py\n\n import json\n import sys\n import os\n\nIf you run ``py.test`` and activate the isort plugin you'll se something like this::\n\n $ py.test --isort\n ========================= test session starts ==========================\n platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4\n plugins: isort\n collected 2 items\n\n file1.py F\n file2.py F\n\n =============================== FAILURES ===============================\n _____________________________ isort-check ______________________________\n ERROR: file1.py Imports are incorrectly sorted.\n\n import os\n +import random\n import sys\n -import random\n _____________________________ isort-check ______________________________\n ERROR: file2.py Imports are incorrectly sorted.\n\n import json\n +import os\n import sys\n -import os\n ======================= 2 failed in 0.02 seconds =======================\n\nIf you can't change the import ordering for ``file2.py``, you have the option to\nexclude ``file2.py`` from isort checks.\n\nSimply add the ``isort_ignore`` setting to your ``py.test`` configuration file::\n\n [pytest]\n isort_ignore =\n file2.py\n\nThen re-run the tests::\n\n $ py.test --isort\n ========================= test session starts ==========================\n platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4\n plugins: isort\n collected 1 items\n\n file1.py F\n\n =============================== FAILURES ===============================\n _____________________________ isort-check ______________________________\n ERROR: file1.py Imports are incorrectly sorted.\n\n import os\n +import random\n import sys\n -import random\n ======================= 1 failed in 0.02 seconds =======================\n\nAs you can see, ``file2.py`` is ignored and not checked. Now fix the\nimport ordering in ``file1.py`` and re-run the tests::\n\n $ py.test --isort\n ========================= test session starts ==========================\n platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4\n plugins: isort\n collected 1 items\n\n file1.py .\n\n ======================= 1 passed in 0.01 seconds ======================\n\nEverything is properly again. Congratulations!\n\nIf you run your testsuite again and again, ``py.test`` will only check changed\nfiles to speed up. You see this by adding ``-rs`` to your ``py.test`` options::\n\n $ py.test --isort -rs\n ========================= test session starts ==========================\n platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4\n plugins: isort\n collected 1 items\n\n file1.py s\n ======================= short test summary info ========================\n SKIP [1] pytest_isort.py:145: file(s) previously passed isort checks\n\n ====================== 1 skipped in 0.01 seconds ======================\n\n\nConfiguration\n-------------\n\nYou can exclude files from isort checks by using the ``isort_ignore``\nsetting in your ``py.test`` configuration file (e.g. ``pytest.ini``)::\n\n # content of setup.cfg\n [pytest]\n isort_ignore =\n docs/conf.py\n *migrations/*.py\n\nThis will ignore the ``conf.py`` python file inside the ``docs`` folder and\nalso ignore any python file in ``migrations`` folders.\n\nNotes\n-----\n\nYou can use ``isort`` to rewrite your python files and re-order the imports but\nthis is not part of this plugin.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/moccu/pytest-isort/", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pytest-isort", "package_url": "https://pypi.org/project/pytest-isort/", "platform": "", "project_url": "https://pypi.org/project/pytest-isort/", "project_urls": { "Homepage": "http://github.com/moccu/pytest-isort/" }, "release_url": "https://pypi.org/project/pytest-isort/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "py.test plugin to check import ordering using isort", "version": "0.3.1" }, "last_serial": 4923957, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2199a37c77b27eb37a08d70aabd98646", "sha256": "fc315e3ceac576f2b7000c4716a55063c45ed60c169ba2ede5a6b4aef97ce13e" }, "downloads": -1, "filename": "pytest_isort-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "2199a37c77b27eb37a08d70aabd98646", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6570, "upload_time": "2015-03-23T16:53:52", "url": "https://files.pythonhosted.org/packages/f3/c7/756f67c5c7aef3345e5222c56e2275093fec1b47e69df47de77898e45642/pytest_isort-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e22d98ef1ef6156c292ba48b0ffbf2c3", "sha256": "e92798127e21d22513c62070989f0fb3b712650e48a4db13e5b8e8034d367cfe" }, "downloads": -1, "filename": "pytest-isort-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e22d98ef1ef6156c292ba48b0ffbf2c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5502, "upload_time": "2015-03-23T16:53:50", "url": "https://files.pythonhosted.org/packages/ad/2e/f8892cb0917452fa8aea2fbf9dc23b0142e6187cafd409aeb47c02712059/pytest-isort-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1ead7ae51198d9a930f593a76d6c3930", "sha256": "ce36b62ca1108e16a8b8fc0d5a82302ba0796a3c352b093e13ccbb18e772edc6" }, "downloads": -1, "filename": "pytest_isort-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "1ead7ae51198d9a930f593a76d6c3930", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4538, "upload_time": "2018-05-07T10:25:56", "url": "https://files.pythonhosted.org/packages/96/69/582f37321af29a004804b0454f014a8ba16bbb78dc39ae0e4a9a7890c771/pytest_isort-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a69f70615bcd9e888c930eb66a501394", "sha256": "d4d195ecfe33d81e258d251b2679b32216bad84131fb41984da22d9d0328a6fe" }, "downloads": -1, "filename": "pytest-isort-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a69f70615bcd9e888c930eb66a501394", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5535, "upload_time": "2018-05-07T10:25:45", "url": "https://files.pythonhosted.org/packages/71/21/277cd8b928fccad8ebc37ac8e51b0f2d80d75ff253b72799a86c0a629569/pytest-isort-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "22cd5d99c08b2b81c29236ed96de422a", "sha256": "2221c0914dfca41914625a646f0d2d1d4c676861b9a7b26746a7fdd40aa2c59b" }, "downloads": -1, "filename": "pytest_isort-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "22cd5d99c08b2b81c29236ed96de422a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4521, "upload_time": "2018-09-11T08:21:57", "url": "https://files.pythonhosted.org/packages/54/77/074018a68f6f3767d6927e6b8c2d6e460bb3be315dce18f2262edb7a9ca7/pytest_isort-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f3fbfc42006909ef7fb6a87007895b20", "sha256": "c70d0f900f4647bb714f0843dd82d7f7b759904006de31254efdb72ce88e0c0e" }, "downloads": -1, "filename": "pytest-isort-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f3fbfc42006909ef7fb6a87007895b20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5569, "upload_time": "2018-09-11T08:21:49", "url": "https://files.pythonhosted.org/packages/a0/df/ce74dcc477e4bcc9da8fa40ab71d3c728b9c3447e1421d08d26963e65c1e/pytest-isort-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "1016d8f903e2a1bda4f033984377e4ed", "sha256": "21f3fafe161695a0cd73087e6e1dce832c13f2685fd0a4d2c50f1ca80774912e" }, "downloads": -1, "filename": "pytest_isort-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "1016d8f903e2a1bda4f033984377e4ed", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5575, "upload_time": "2019-03-07T21:15:32", "url": "https://files.pythonhosted.org/packages/23/da/4653be9ed7acbd155fe7b6e181e8acb79d8fa58a40c66444202b6fd76e25/pytest_isort-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bef98d6d3fb0a8729bee9def7299af97", "sha256": "328f096986af4001a0a39d534afe087670ed6902464ea6a9de059211ecd6baf5" }, "downloads": -1, "filename": "pytest-isort-0.3.0.tar.gz", "has_sig": false, "md5_digest": "bef98d6d3fb0a8729bee9def7299af97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5641, "upload_time": "2019-03-07T21:14:22", "url": "https://files.pythonhosted.org/packages/dd/89/e2e583c958df2ad18af2167e38e92dc29c2eeeb0036097b6a8b54fb7d425/pytest-isort-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "84701003604bbbee3dc2f16d93236555", "sha256": "3be60e0de277b420ff89303ca6494320c41f7819ffa898756b90ef976e4c636a" }, "downloads": -1, "filename": "pytest_isort-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "84701003604bbbee3dc2f16d93236555", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5575, "upload_time": "2019-03-11T07:56:30", "url": "https://files.pythonhosted.org/packages/e4/01/94bdd1927582263947d37b2225412b9ef1763f8ebc9c42f55a650f718aca/pytest_isort-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff1edeb54f2a1da20e16d0bea341e67e", "sha256": "4bfee60dad1870b51700d55a85f5ceda766bd9d3d2878c1bbabee80e61b1be1a" }, "downloads": -1, "filename": "pytest-isort-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ff1edeb54f2a1da20e16d0bea341e67e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6429, "upload_time": "2019-03-11T07:56:20", "url": "https://files.pythonhosted.org/packages/80/4c/0361c59b69ab463c648d8c928e66b15f06b37bb523a9e6f73a50032b6fc7/pytest-isort-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "84701003604bbbee3dc2f16d93236555", "sha256": "3be60e0de277b420ff89303ca6494320c41f7819ffa898756b90ef976e4c636a" }, "downloads": -1, "filename": "pytest_isort-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "84701003604bbbee3dc2f16d93236555", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5575, "upload_time": "2019-03-11T07:56:30", "url": "https://files.pythonhosted.org/packages/e4/01/94bdd1927582263947d37b2225412b9ef1763f8ebc9c42f55a650f718aca/pytest_isort-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff1edeb54f2a1da20e16d0bea341e67e", "sha256": "4bfee60dad1870b51700d55a85f5ceda766bd9d3d2878c1bbabee80e61b1be1a" }, "downloads": -1, "filename": "pytest-isort-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ff1edeb54f2a1da20e16d0bea341e67e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6429, "upload_time": "2019-03-11T07:56:20", "url": "https://files.pythonhosted.org/packages/80/4c/0361c59b69ab463c648d8c928e66b15f06b37bb523a9e6f73a50032b6fc7/pytest-isort-0.3.1.tar.gz" } ] }