Merge pull request #1101 from alphagov/pycodestyle

Use pycodestyle instead of PEP8
This commit is contained in:
Chris Hill-Scott
2017-02-02 15:18:04 +00:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
-r requirements.txt -r requirements.txt
pep8==1.7.0 pycodestyle==2.3.1
pytest==3.0.2 pytest==3.0.2
pytest-mock==1.2 pytest-mock==1.2
pytest-cov==2.3.1 pytest-cov==2.3.1

View File

@@ -27,7 +27,7 @@ function display_result {
if [ -d venv ]; then if [ -d venv ]; then
source ./venv/bin/activate source ./venv/bin/activate
fi fi
pep8 . pycodestyle .
display_result $? 1 "Code style check" display_result $? 1 "Code style check"
npm test npm test

View File

@@ -1,4 +1,4 @@
[pep8] [pycodestyle]
max-line-length = 120 max-line-length = 120
exclude = ./migrations,./venv,./venv3,./node_modules,./bower_components,./cache exclude = ./migrations,./venv,./venv3,./node_modules,./bower_components,./cache