pytest-pep8

1.0.6 · abandoned · verified Thu Apr 16

pytest-pep8 is a pytest plugin designed to check PEP8 compliance in Python code. It integrates directly with the pytest testing framework to efficiently discover and check `.py` files for style guide violations. The plugin allows for flexible configuration to ignore specific errors or warnings on a per-project or per-file basis. Its last release was in April 2014, and it is largely unmaintained now.

Common errors

Warnings

Install

Quickstart

Install the plugin via pip, then run pytest with the `--pep8` flag. The plugin will automatically discover and check Python files for PEP8 violations. Configuration for ignoring specific errors can be done in `pytest.ini` or `setup.cfg`.

# content of myproject/myfile.py
def somefunc( arg1,  arg2):
    pass

# Terminal
# Install the plugin
# pip install pytest-pep8

# Run pytest with the --pep8 flag
# pytest --pep8

view raw JSON →