A pytest plugin that checks Python source code for logical errors using pyflakes. It integrates seamlessly into the pytest ecosystem, automatically running pyflakes on all collected test files and source files. Current version 4.0.5 supports Python >=3.5. The plugin is in maintenance mode; no new features are expected.
pip install pytest-flakesVerified import paths — ran on the pinned version, not inferred.
Create a test file (e.g., test_demo.py). Run pytest normally. The plugin will automatically check all Python files for pyflakes errors.
Configure pytest.ini with flakes-ignore = path/to/ignore*
Consider using flake8 for modern Python syntax support.
pip install pyflakes
pip install pytest-flakes and ensure it's in the test environment