{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"},{"label":"Unit","url":"https://skillfed.io/packages/category/software-development-testing-unit"}],"enrichment":{"capability":"A flake8 plugin that detects and reports style inconsistencies and common mistakes in pytest-based test code, enforcing best practices for fixtures, parametrization, assertions, and exception handling.","skillfed_tags":["pytest-linting","test-quality","flake8-plugin"],"use_cases":["Enforce consistent pytest fixture style across a team (e.g., @pytest.fixture vs @pytest.fixture()) via PT001/PT023.","Catch overly broad exception handlers in pytest.raises() that could mask unrelated errors (PT011).","Migrate from unittest-style assertions to pytest idioms automatically during code review (PT009/PT027).","Detect fixture naming mistakes and return-value inconsistencies that indicate bugs (PT004/PT005).","Validate parametrize decorators for correct argument types and duplicate test cases (PT006/PT007/PT014).","Identify deprecated pytest patterns like @pytest.yield_fixture and request.addfinalizer (PT020/PT021)."],"what_it_does":"flake8-pytest-style is a flake8 plugin that integrates directly into your linting workflow to catch style and consistency issues specific to pytest test code. It reports over 30 distinct error codes (PT001\u2013PT031) covering common mistakes like using @pytest.fixture() with unnecessary parentheses, overly broad exception matching in pytest.raises(), unittest-style assertions instead of pytest idioms, and fixture naming/return-value inconsistencies.\n\nThe plugin works as a flake8 extension, running automatically when you invoke flake8 on your test files. It is configurable via flake8 settings for several rules (fixture parentheses style, parametrize argument types, exception/warning matching requirements) and requires only one runtime dependency. It supports Python 3.10 through 3.14 and is actively maintained.","worth_installing":"Yes. If you use pytest and want automated style enforcement for test code, this plugin is worth installing. It has low install friction, active maintenance, no known vulnerabilities, and catches real mistakes that improve test reliability. The only caveat is that the license treatment is marked unclear in the metadata, though the description states MIT\u2014verify the actual license before use in proprietary projects."},"id":"flake8-pytest-style","links":{"html":"https://skillfed.io/packages/flake8-pytest-style","md":"https://skillfed.io/packages/flake8-pytest-style.md","pypi":"https://pypi.org/project/flake8-pytest-style/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-20","license_spdx":null,"license_treatment":"unclear","name":"flake8-pytest-style","python_support":"supports_current","summary":"A flake8 plugin checking common style issues or inconsistencies with pytest-based tests."},"popularity":{"monthly_downloads":201433,"position":9672,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
