From 7323298d4a7827887d12f20787385255fccaaca4 Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Sun, 28 Aug 2016 13:40:39 -0400 Subject: [PATCH] pep8 -> pycodestyle (#144) The project got renamed. --- requirements/developer.pip | 2 +- tests/test_static.py | 6 +++--- tox.ini | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/requirements/developer.pip b/requirements/developer.pip index e90fd85b..0b3f124f 100644 --- a/requirements/developer.pip +++ b/requirements/developer.pip @@ -1,5 +1,5 @@ -r user.pip -pep8 >= 1.7.0 +pycodestyle >= 2.0.0 pytest >= 2.9.2 pytest-cov >= 2.3.0 # PyYAML # requirement already covered by setup.py diff --git a/tests/test_static.py b/tests/test_static.py index 8d9f534f..e5024b6d 100644 --- a/tests/test_static.py +++ b/tests/test_static.py @@ -2,7 +2,7 @@ import os # External modules -import pep8 +import pycodestyle import yaml FLINTROCK_ROOT_DIR = ( @@ -31,8 +31,8 @@ def test_code_compiles(): assert result == 1 -def test_pep8_compliance(): - style = pep8.StyleGuide( +def test_style(): + style = pycodestyle.StyleGuide( config_file=os.path.join(FLINTROCK_ROOT_DIR, 'tox.ini')) result = style.check_files(TEST_PATHS) assert result.total_errors == 0 diff --git a/tox.ini b/tox.ini index 6182c0ee..2d36505f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,3 +1,6 @@ +# [pycodestyle] +# Need to stick to [pep8] for now due to bug in pycodestyle. +# See: https://github.com/PyCQA/pycodestyle/issues/550 [pep8] max-line-length=100 ignore=E501,E402