pytest plugin to check FLAKE8 requirements
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest_flake8-1.3.0.tar.gz
.
File metadata
- Download URL: pytest_flake8-1.3.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88fb35562ce32d915c6ba41ef0d5e1cfcdd8ff884a32b7d46aa99fc77a3d1fe6 |
|
MD5 | 0f8b276a4ff9955c23f77997652cb0db |
|
BLAKE2b-256 | 4f833b0154ccd60191e24b75c99c5e7c6dcfb1d2fd81dd47528523b38fed6ac6 |
File details
Details for the file pytest_flake8-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_flake8-1.3.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de10517c59fce25c0a7abb2a2b2a9d0b0ceb59ff0add7fa8e654d613bb25e218 |
|
MD5 | c3b359758f0d45e826abfb7f35007f88 |
|
BLAKE2b-256 | 7dca163e24b6d92ba3e92245a6a23e88b946c29ff5294b2f4bc24c7a6171a13d |