Skip to content

Commit

Permalink
pep8 -> pycodestyle (#144)
Browse files Browse the repository at this point in the history
The project got renamed.
  • Loading branch information
nchammas authored Aug 28, 2016
1 parent 69b17ef commit 7323298
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements/developer.pip
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions tests/test_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

# External modules
import pep8
import pycodestyle
import yaml

FLINTROCK_ROOT_DIR = (
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7323298

Please sign in to comment.