Changed .travis.yml to download pep8 module Added pycodestyle conformance checks to be run by nosetestsubuntu/rebased
parent
7be0dc2ee8
commit
ed2aef3db1
@ -1,4 +1,4 @@
|
||||
FROM debian:stable
|
||||
WORKDIR /britney
|
||||
ADD . /britney
|
||||
RUN apt-get update && apt-get install --no-install-recommends --assume-yes python3 python3-apt python3-yaml python3-coverage python3-nose rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl curl
|
||||
RUN apt-get update && apt-get install --no-install-recommends --assume-yes python3 python3-apt python3-yaml python3-coverage python3-nose python3-pep8 rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl curl
|
||||
|
@ -0,0 +1,12 @@
|
||||
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).")
|
Loading…
Reference in new issue