11 lines
337 B
Python
11 lines
337 B
Python
import glob
|
|
|
|
import pycodestyle
|
|
|
|
|
|
def test_conformance():
|
|
"""Test that we conform to PEP-8."""
|
|
style = pycodestyle.StyleGuide(max_line_length=120)
|
|
result = style.check_files(glob.glob('*.py') + glob.glob('domdiv/*.py') + glob.glob('tests/*.py'))
|
|
assert result.total_errors == 0, "Found code style errors (and warnings)."
|