{ "info": { "author": "Mikhail Burshteyn", "author_email": "mdburshteyn@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Plugins", "Framework :: Flake8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Quality Assurance" ], "description": "# flake8-pytest-style\n\n[![pypi](https://badge.fury.io/py/flake8-pytest-style.svg)](https://pypi.org/project/flake8-pytest-style)\n[![Python: 3.6+](https://img.shields.io/badge/Python-3.6+-blue.svg)](https://pypi.org/project/flake8-pytest-style)\n[![Downloads](https://img.shields.io/pypi/dm/flake8-pytest-style.svg)](https://pypistats.org/packages/flake8-pytest-style)\n[![Build Status](https://travis-ci.com/m-burst/flake8-pytest-style.svg?branch=master)](https://travis-ci.com/m-burst/flake8-pytest-style)\n[![Code coverage](https://codecov.io/gh/m-burst/flake8-pytest-style/branch/master/graph/badge.svg)](https://codecov.io/gh/m-burst/flake8-pytest-style)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://en.wikipedia.org/wiki/MIT_License)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n## Description\n\nA `flake8` plugin checking common style issues or inconsistencies with `pytest`-based tests.\n\nCurrently the following errors are reported:\n\n* `PT001 use @pytest.fixture() over @pytest.fixture`\n\n* `PT002 configuration for fixture '{name}' specified via positional args, use kwargs` \ne.g. `@pytest.fixture(scope='module')` is OK, and `@pytest.fixture('module')` is an error\n\n* `PT003 scope='function' is implied in @pytest.fixture()` \ne.g. `@pytest.fixture(scope='function')` should be replaced with `@pytest.fixture()`\n\n* `PT004 fixture '{name}' does not return anything, add leading underscore`\n\n* `PT005 fixture '{name}' returns a value, remove leading underscore`\n\n* `PT006 wrong name(s) type in @pytest.mark.parametrize, expected {expected_type}` \ne.g. `@pytest.mark.parametrize(('name1', 'name2'), ...)` is ok,\nand `@pytest.mark.parametrize('name1,name2', ...)` is an error\n\n* `PT007 wrong values type in @pytest.mark.parametrize, expected {expected_type}`\n\n* `PT008 use return_value= instead of patching with lambda` \ne.g. `mocker.patch('target', return_value=7)` is OK,\nand `mocker.patch('target', lambda *args: 7)` is an error\n\n## Installation\n\n pip install flake8-pytest-style\n\n## For developers\n\n### Install deps and setup pre-commit hook\n\n make init\n\n### Run linters, autoformat, tests etc.\n\n make format lint test\n\n### Bump new version\n\n make bump_major\n make bump_minor\n make bump_patch\n\n## License\n\nMIT\n\n## Change Log\n\n### 0.1.3 - 2019-05-24\n\n* add `yield` fixtures support\n* fix changelog entry for 0.1.2\n\n### 0.1.2 - 2019-05-23\n\n* fix parametrize checkers not working in decorators\n\n### 0.1.1 - 2019-05-23\n\n* update PyPI description\n\n### 0.1.0 - 2019-05-23\n\n* initial\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.org/project/flake8-pytest-style", "keywords": "flake8,pytest", "license": "MIT", "maintainer": "Mikhail Burshteyn", "maintainer_email": "mdburshteyn@gmail.com", "name": "flake8-pytest-style", "package_url": "https://pypi.org/project/flake8-pytest-style/", "platform": "", "project_url": "https://pypi.org/project/flake8-pytest-style/", "project_urls": { "Homepage": "https://pypi.org/project/flake8-pytest-style", "Repository": "https://github.com/m-burst/flake8-pytest-style" }, "release_url": "https://pypi.org/project/flake8-pytest-style/0.1.3/", "requires_dist": [ "flake8-plugin-utils (>=1.0,<2.0)" ], "requires_python": ">=3.6,<4.0", "summary": "A flake8 plugin checking common style issues or inconsistencies with pytest-based tests.", "version": "0.1.3" }, "last_serial": 5314142, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "eb7aeaa07cf595bdca8b6cbb7876f35e", "sha256": "d8717a566217b59d8c5373b485e1a3d30ffa7c8900fb3464cdfc787e783ecb61" }, "downloads": -1, "filename": "flake8_pytest_style-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "eb7aeaa07cf595bdca8b6cbb7876f35e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 7357, "upload_time": "2019-05-23T13:04:54", "url": "https://files.pythonhosted.org/packages/a9/6b/32963c2f6d1b6388ffb410942aaaf885006075d73e61f354f048a866248f/flake8_pytest_style-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "df7a93dbef02d3a537110d7e4f5b9a13", "sha256": "8e3fb366db8e6be68d5cbdb1817b0d33952820ead5d18394da9f77db2400de8c" }, "downloads": -1, "filename": "flake8-pytest-style-0.1.0.tar.gz", "has_sig": false, "md5_digest": "df7a93dbef02d3a537110d7e4f5b9a13", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 5950, "upload_time": "2019-05-23T13:04:52", "url": "https://files.pythonhosted.org/packages/95/b4/e3d4bb4cf2a1a1bfbd9a93e8436659c448643721e6b178237d7ef1fec592/flake8-pytest-style-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b52d3a63607cf6cbb57c6fa458879c9d", "sha256": "70d183d493f0419cb861b605e62981c639d1e45b19d51941bec83cb5df6c7cea" }, "downloads": -1, "filename": "flake8_pytest_style-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b52d3a63607cf6cbb57c6fa458879c9d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 7387, "upload_time": "2019-05-23T13:10:36", "url": "https://files.pythonhosted.org/packages/9a/48/333ac4a5760026daf241cbe3622d01154af3aa6dbaecceb6a6f49d6d2384/flake8_pytest_style-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b91c356b1107c603503731cb53a90822", "sha256": "b57b8ca81426d34cd1396010c4e3fdb3eafaa7b261d2ab745d88484fb8ae4bf1" }, "downloads": -1, "filename": "flake8-pytest-style-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b91c356b1107c603503731cb53a90822", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 5997, "upload_time": "2019-05-23T13:10:35", "url": "https://files.pythonhosted.org/packages/56/3a/5ce75e239ab5bed6931140eb9d8471ae8dd1c5933acd4ad4ca0879aae36f/flake8-pytest-style-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0e3ddfd6b8a5d8323e0a44843e125535", "sha256": "cb4cdb514c201ef6e1ce033394d99e285ba659842c0a4c5d93c4b80b81a05935" }, "downloads": -1, "filename": "flake8_pytest_style-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0e3ddfd6b8a5d8323e0a44843e125535", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 7406, "upload_time": "2019-05-23T13:49:48", "url": "https://files.pythonhosted.org/packages/ee/9c/d7c007659523ed759e2bbb0384644643bcc194dee2cd4d7d941fb9ac7a99/flake8_pytest_style-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "961af67eed707f7c0c59e1357fe40e72", "sha256": "5fce591ed562b0e72897e491a63913a6df6179ae4dc902314a8eae376c88ee65" }, "downloads": -1, "filename": "flake8-pytest-style-0.1.2.tar.gz", "has_sig": false, "md5_digest": "961af67eed707f7c0c59e1357fe40e72", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 6015, "upload_time": "2019-05-23T13:49:47", "url": "https://files.pythonhosted.org/packages/85/db/e8f6e5a5da43031d25d61d27da1a42bf67ea289cd57be808ef3f2ca60a95/flake8-pytest-style-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d56644f49ca14eb588d3835a19a5518f", "sha256": "1c2303998c509cd65c3fb047cd536787ddf953e8113bc7f086c0cd7468db4b1f" }, "downloads": -1, "filename": "flake8_pytest_style-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d56644f49ca14eb588d3835a19a5518f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 7472, "upload_time": "2019-05-24T19:11:23", "url": "https://files.pythonhosted.org/packages/a5/cc/6c4c3f26c12ab02c0a37c781026f89b75bcb7cb9673d153e2284f3457cf2/flake8_pytest_style-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8cd3131f1c72b5d307b4b99183d4717", "sha256": "820503cb50b7f6aa13a9889f4c47ba35bbd666877a72ed138ae5682a9bccaf9d" }, "downloads": -1, "filename": "flake8-pytest-style-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e8cd3131f1c72b5d307b4b99183d4717", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 6108, "upload_time": "2019-05-24T19:11:22", "url": "https://files.pythonhosted.org/packages/ce/c4/3a27f739ea596140d4858f86ab5a214a9101f81c45d21997e959c933b426/flake8-pytest-style-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d56644f49ca14eb588d3835a19a5518f", "sha256": "1c2303998c509cd65c3fb047cd536787ddf953e8113bc7f086c0cd7468db4b1f" }, "downloads": -1, "filename": "flake8_pytest_style-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d56644f49ca14eb588d3835a19a5518f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 7472, "upload_time": "2019-05-24T19:11:23", "url": "https://files.pythonhosted.org/packages/a5/cc/6c4c3f26c12ab02c0a37c781026f89b75bcb7cb9673d153e2284f3457cf2/flake8_pytest_style-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8cd3131f1c72b5d307b4b99183d4717", "sha256": "820503cb50b7f6aa13a9889f4c47ba35bbd666877a72ed138ae5682a9bccaf9d" }, "downloads": -1, "filename": "flake8-pytest-style-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e8cd3131f1c72b5d307b4b99183d4717", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 6108, "upload_time": "2019-05-24T19:11:22", "url": "https://files.pythonhosted.org/packages/ce/c4/3a27f739ea596140d4858f86ab5a214a9101f81c45d21997e959c933b426/flake8-pytest-style-0.1.3.tar.gz" } ] }