From 6c88eb80974cdd7587619ade3fd832ba6e63f065 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Wed, 25 Oct 2017 08:28:39 +0200 Subject: [PATCH] travis: pep8 changes to pycodestyle Travis CI environment changes pep8 into pycodestyle, do the transition on our side as well Reviewed-By: Tibor Dudlak --- .travis.yml | 4 ++-- .travis_run_task.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c1088daaa..8875b7760 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ cache: pip env: global: - TEST_RUNNER_IMAGE="freeipa/freeipa-test-runner:master-latest" - PEP8_ERROR_LOG="pep8_errors.log" + PEP8_ERROR_LOG="pycodestyle_errors.log" CI_RESULTS_LOG="ci_results_${TRAVIS_BRANCH}.log" CI_BACKLOG_SIZE=5000 CI_RUNNER_LOGS_DIR="/tmp/test-runner-logs" @@ -51,7 +51,7 @@ env: install: - pip install --upgrade pip - pip3 install --upgrade pip - - pip install pep8 + - pip install pycodestyle - > pip3 install git+https://github.com/freeipa/ipa-docker-test-runner@release-0-2-1 diff --git a/.travis_run_task.sh b/.travis_run_task.sh index 540c883d8..a2db5fd07 100755 --- a/.travis_run_task.sh +++ b/.travis_run_task.sh @@ -30,7 +30,7 @@ if [[ "$TASK_TO_RUN" == "lint" ]] then if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]] then - git diff origin/$TRAVIS_BRANCH -U0 | pep8 --diff &> $PEP8_ERROR_LOG ||: + git diff origin/$TRAVIS_BRANCH -U0 | pycodestyle --diff &> $PEP8_ERROR_LOG ||: fi # disable developer mode for lint task, otherwise we get an error