Skip to content

Commit

Permalink
[FIX] travis: apply patch for duplicate-code issue for any pylint ver…
Browse files Browse the repository at this point in the history
…sion

This patch is to fix an issue about pylint disable in duplicate-code, related to PR pylint-dev/pylint#1055, this patch works in pylint versions >= 2.2.0
  • Loading branch information
fernandahf committed Jan 20, 2021
1 parent 0eb6d28 commit 242b895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions travis/travis_install_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ if [ "${LINT_CHECK}" != "0" ]; then
wget -q https://raw.githubusercontent.com/Vauxoo/pylint-conf/master/conf/pylint_vauxoo_light_beta.cfg -O ${HOME}/maintainer-quality-tools/travis/cfg/travis_run_pylint_beta.cfg
wget -q https://raw.githubusercontent.com/Vauxoo/pylint-conf/master/conf/.jslintrc -O ${HOME}/maintainer-quality-tools/travis/cfg/.jslintrc
# Ugly patch to apply https://github.com/PyCQA/pylint/pull/1055
wget -q https://raw.githubusercontent.com/Vauxoo/pylint-conf/master/conf/pylint_pr1055.patch -O /tmp/pylint_pr1055.patch
patch -f -p0 $(python -c "from __future__ import print_function; from pylint.checkers import similar; print(similar.__file__.rstrip('c'))") -i /tmp/pylint_pr1055.patch
wget -q https://raw.githubusercontent.com/Vauxoo/pylint-conf/master/conf/pylint_pr1055_2.patch -O /tmp/pylint_pr1055_2.patch
patch -f -p0 $(python -c "from __future__ import print_function; from pylint.checkers import similar; print(similar.__file__.rstrip('c'))") -i /tmp/pylint_pr1055_2.patch
fi

# We can exit here and do nothing if this only a LINT check
Expand Down

0 comments on commit 242b895

Please sign in to comment.