WMGZON/tests/general/test_pep8.py

12 lines
340 B
Python
Raw Normal View History

2024-01-21 21:58:45 +00:00
import pycodestyle
# Tests files to ensure they conform to pep8 standards
2024-01-21 22:06:06 +00:00
2024-01-21 21:58:45 +00:00
def test_pep8_conformance():
"""Test that we conform to PEP8."""
pep8style = pycodestyle.StyleGuide()
2024-01-25 00:08:25 +00:00
dirs = ["./controllers", "./models", "./scripts", "./tests", "./utils"]
2024-01-21 21:58:45 +00:00
result = pep8style.check_files(dirs)
2024-01-21 22:06:06 +00:00
assert result.total_errors == 0