Skip to content

Commit

Permalink
Merge pull request #667 from micw523/k8s_pep8
Browse files Browse the repository at this point in the history
change pep8 into pycodestyle since pep8 is depreciated
  • Loading branch information
k8s-ci-robot committed Oct 29, 2018
2 parents 3fb2be1 + 6ea777e commit 529c0d3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions scripts/update-pep8.sh → scripts/update-pycodestyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 529c0d3

Please sign in to comment.