Thanks to visit codestin.com
Credit goes to github.com

Skip to content

change pep8 into pycodestyle since pep8 is depreciated #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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