From f048b918a00cb66643e0fa33f8cee84ee0583ab9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 2 Feb 2017 10:50:26 +0000 Subject: [PATCH] Use pycodestyle instead of PEP8 PEP8 was renamed to pycodestyle; this issue explains why: PyCQA/pycodestyle#466 This commit changes our tests to use pycodestyle instead of pep8. No changes to our code were required as a result. --- requirements_for_test.txt | 2 +- scripts/run_tests.sh | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements_for_test.txt b/requirements_for_test.txt index 6fd918fec..7305cf481 100644 --- a/requirements_for_test.txt +++ b/requirements_for_test.txt @@ -1,5 +1,5 @@ -r requirements.txt -pep8==1.7.0 +pycodestyle==2.3.1 pytest==3.0.2 pytest-mock==1.2 pytest-cov==2.3.1 diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index a7cef364f..1e478e15b 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -27,7 +27,7 @@ function display_result { if [ -d venv ]; then source ./venv/bin/activate fi -pep8 . +pycodestyle . display_result $? 1 "Code style check" npm test diff --git a/setup.cfg b/setup.cfg index 95eee0b08..b0fda4954 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,4 @@ -[pep8] +[pycodestyle] max-line-length = 120 exclude = ./migrations,./venv,./venv3,./node_modules,./bower_components,./cache