dominiontabs/domdiv/tests/codestyle_tests.py
Peter 0ffa111025
Test language tool run (#192)
* switch to pytest
* add language tool test
2018-02-19 13:38:30 -08:00

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)."