Skip to main content

pytest plugin to check FLAKE8 requirements

Project description

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.

Run with pytest --cache-clear --flake8 to bypass.

Notes

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_flake8-1.2.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

pytest_flake8-1.2.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pytest_flake8-1.2.1.tar.gz.

File metadata

  • Download URL: pytest_flake8-1.2.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytest_flake8-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a3b9b2f8ea5e58e96778d10b07c8261afb786c8f3cc18ea82e2742bc26074735
MD5 b3e943a3ee4daf627f17e1b6f7bd9cab
BLAKE2b-256 93b45769667a61a32bbd20a4112d9c4af55f1c59f323262da0aaf00fd3094a0d

See more details on using hashes here.

Provenance

File details

Details for the file pytest_flake8-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_flake8-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69690200ef796d9eb9be0b706cab9edcf70fa7cdadbef160429af81785b7b1a8
MD5 4b733ee5b17d47476a628e16bea142ef
BLAKE2b-256 41a5b7db2fde3a4ea4202b311047e2c66d82fc2c9e6a89e1f20c07983a9a8133

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page