pytest-flake8 1.3.0


pip install pytest-flake8

  Latest version

Released: Nov 09, 2024

Project Links

Meta
Author: Thorsten Lockert
Maintainer: Thorsten Lockert
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3
  • Python :: 3 :: Only

Topic
  • Software Development
  • Software Development :: Quality Assurance
  • Software Development :: Testing
https://img.shields.io/pypi/v/pytest-flake8.svg https://img.shields.io/pypi/pyversions/pytest-flake8.svg tests Ruff https://readthedocs.org/projects/pytest-flake8/badge/?version=latest https://img.shields.io/badge/skeleton-2024-informational

pytest plugin for efficiently checking PEP8 compliance

Usage

Install it into a test environment, then run tests with the option.

pytest --flake8

Every file ending in .py will be discovered and checked with flake8.

Configuring Flake8

See the Flake8 docs on configuring.

FAQs

All the Flake8 tests are skipping!

By design, results are cached and only changed files are checked.

To bypass this caching mechanism, run the following command:

pytest --cache-clear --flake8

Run tests with [tox](https://tox.wiki) (e.g. pipx run tox).

For more information, take a look at the skeleton.

Notes

For more info on pytest see http://pytest.org

The code is partially based on Ronny Pfannschmidt’s pytest-codecheckers plugin.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
flake8 (>=4.0)
pytest (>=7.0)