mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-07-03 20:41:29 +00:00
Changed .travis.yml to download pep8 module Added pycodestyle conformance checks to be run by nosetests
13 lines
340 B
Python
13 lines
340 B
Python
import unittest
|
|
import pep8
|
|
|
|
|
|
class TestCodeFormat(unittest.TestCase):
|
|
|
|
def test_conformance(self):
|
|
"""Test that we conform to PEP-8."""
|
|
style = pep8.StyleGuide()
|
|
result = style.check_files('.')
|
|
self.assertEqual(result.total_errors, 0,
|
|
"Found code style errors (and warnings).")
|