1. Ronny Pfannschmidt
  2. pytest-codecheckers

Source

pytest-codecheckers / codecheckers / pep.py

1
2
3
4
5
6
7
8
import pep8


def check_file(path, filename):
    checker = pep8.Checker(filename, path.readlines(),
                           show_source=True,
                           repeat=True)
    return checker.check_all()