diff --git a/.travis.yml b/.travis.yml index 39d0814741..dba38fcecf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ matrix: - python: 2.7 env: TOXENV=py27-functional - python: 2.7 - env: TOXENV=update-pep8 + env: TOXENV=update-pycodestyle - python: 2.7 env: TOXENV=docs - python: 2.7 diff --git a/scripts/update-pep8.sh b/scripts/update-pycodestyle.sh similarity index 94% rename from scripts/update-pep8.sh rename to scripts/update-pycodestyle.sh index 6ec5bca258..a3bf25dc86 100755 --- a/scripts/update-pep8.sh +++ b/scripts/update-pycodestyle.sh @@ -49,7 +49,7 @@ if [[ -z ${ENV} ]]; then trap "deactivate" EXIT SIGINT echo "--- Updating tools" - pip install --upgrade pep8 + pip install --upgrade pycodestyle pip install --upgrade autopep8 pip install --upgrade isort fi @@ -70,10 +70,10 @@ for SOURCE in $SOURCES; do isort -y $SOURCE done -echo "--- check pep8 (all need to be fixed manually)" +echo "--- check pycodestyle (all need to be fixed manually)" set +o errexit for SOURCE in $SOURCES; do - pep8 $SOURCE + pycodestyle $SOURCE done if [[ ! -z ${ENV} ]]; then diff --git a/test-requirements.txt b/test-requirements.txt index e18c5c27d4..0bb8dc53c4 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,6 +8,6 @@ mock>=2.0.0 sphinx>=1.2.1,!=1.3b1,<1.4 # BSD recommonmark codecov>=1.4.0 -pep8 +pycodestyle autopep8 isort \ No newline at end of file diff --git a/tox.ini b/tox.ini index 307b6e87f0..44aec7172f 100644 --- a/tox.ini +++ b/tox.ini @@ -15,9 +15,9 @@ commands = commands = python setup.py build_sphinx -[testenv:update-pep8] +[testenv:update-pycodestyle] commands = - {toxinidir}/scripts/update-pep8.sh + {toxinidir}/scripts/update-pycodestyle.sh [testenv:py27-functional] commands =