add pep8-tests

This commit is contained in:
Thor77 2015-07-17 15:36:25 +02:00
parent b446abfed4
commit df578d6087
2 changed files with 10 additions and 0 deletions

2
.pep8 Normal file
View File

@ -0,0 +1,2 @@
[pep8]
ignore = E501

8
tests/test_style.py Normal file
View File

@ -0,0 +1,8 @@
import pep8
def test_pep8_comformance():
''' Test that the code conforms to PEP8 '''
pep8style = pep8.StyleGuide(config_file='.pep8')
result = pep8style.check_files(['tsstats.py', 'tests/test_config.py', 'tests/test_general.py', 'tests/test_style.py'])
assert result.total_errors == 0