Skip to main content
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.

Release files for pytest-flake8 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-flake8 1.3.0
File Size Uploaded
pytest_flake8-1.3.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-flake8 1.3.0
File Interpreter ABI Platform
pytest_flake8-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / pytest_flake8-1.3.0.tar.gz

Download URL pytest_flake8-1.3.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
88fb35562ce32d915c6ba41ef0d5e1cfcdd8ff884a32b7d46aa99fc77a3d1fe6
BLAKE2b-256 checksum
How to use checksums
4f833b0154ccd60191e24b75c99c5e7c6dcfb1d2fd81dd47528523b38fed6ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / pytest_flake8-1.3.0-py3-none-any.whl

Download URL pytest_flake8-1.3.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de10517c59fce25c0a7abb2a2b2a9d0b0ceb59ff0add7fa8e654d613bb25e218
BLAKE2b-256 checksum
How to use checksums
7dca163e24b6d92ba3e92245a6a23e88b946c29ff5294b2f4bc24c7a6171a13d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.1

2 release files

0.9

2 release files

0.8.1

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page