{"library":"pytest-flake8","title":"pytest-flake8","description":"pytest-flake8 is a pytest plugin that integrates flake8 into your test suite to check Python code against PEP8, PyFlakes, and McCabe complexity. As of version 1.3.0, it is actively maintained by coherent-oss with regular releases and supports Python >=3.9.","language":"python","status":"active","last_verified":"Mon Apr 13","install":{"commands":["pip install pytest-flake8"],"cli":null},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# content of your_module.py\ndef long_line_function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12):\n    pass\n\n# content of setup.cfg or pyproject.toml\n# For setup.cfg:\n# [tool:pytest]\n# flake8-max-line-length = 79\n\n# For pyproject.toml (requires pytest>=6.0):\n# [tool.pytest.ini_options]\n# flake8-max-line-length = 79\n\n# Run pytest with flake8 checks\n# pytest --flake8 your_module.py","lang":"bash","description":"After installation, run `pytest --flake8` to execute flake8 checks on all discovered Python files. Configuration for pytest-flake8 specific options (e.g., `flake8-max-line-length` or `flake8-ignore`) should be placed in your `setup.cfg` under the `[tool:pytest]` section or in `pyproject.toml` under `[tool.pytest.ini_options]` if using pytest >= 6.0.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}