Loading ci-support.sh +27 −0 Original line number Diff line number Diff line Loading @@ -427,4 +427,31 @@ install_and_run_flake8() # }}} # {{{ pylint run_pylint() { curl -L -O -k "${ci_support}/run-pylint.py" if ! test -f .pylintrc.yml; then curl -o .pylintrc.yml "${ci_support}/.pylintrc-default.yml" fi # <2.6 version bound put in place out of an abundance of cautiousness, no particular reason # 2020-07-15 AK # pytest is being installed since test_*.py modules may import pytest, which # pylint may inspect. $PY_EXE -m pip install "pylint<2.6" PyYAML pytest PYLINT_RUNNER_ARGS="--yaml-rcfile=.pylintrc.yml" if test -f .pylintrc-local.yml; then PYLINT_RUNNER_ARGS="$PYLINT_RUNNER_ARGS --yaml-rcfile=.pylintrc-local.yml" fi $PY_EXE run-pylint.py $PYLINT_RUNNER_ARGS "$@" } # }}} # vim: foldmethod=marker:sw=2 prepare-and-run-pylint.sh +1 −20 Original line number Diff line number Diff line Loading @@ -6,23 +6,4 @@ curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support. source ci-support.sh build_py_project curl -L -O -k "${ci_support}/run-pylint.py" if ! test -f .pylintrc.yml; then curl -o .pylintrc.yml "${ci_support}/.pylintrc-default.yml" fi # <2.6 version bound put in place out of an abundance of cautiousness, no particular reason # 2020-07-15 AK # pytest is being installed since test_*.py modules may import pytest, which # pylint may inspect. $PY_EXE -m pip install "pylint<2.6" PyYAML pytest PYLINT_RUNNER_ARGS="--yaml-rcfile=.pylintrc.yml" if test -f .pylintrc-local.yml; then PYLINT_RUNNER_ARGS="$PYLINT_RUNNER_ARGS --yaml-rcfile=.pylintrc-local.yml" fi $PY_EXE run-pylint.py $PYLINT_RUNNER_ARGS "$@" run_pylint "$@" Loading
ci-support.sh +27 −0 Original line number Diff line number Diff line Loading @@ -427,4 +427,31 @@ install_and_run_flake8() # }}} # {{{ pylint run_pylint() { curl -L -O -k "${ci_support}/run-pylint.py" if ! test -f .pylintrc.yml; then curl -o .pylintrc.yml "${ci_support}/.pylintrc-default.yml" fi # <2.6 version bound put in place out of an abundance of cautiousness, no particular reason # 2020-07-15 AK # pytest is being installed since test_*.py modules may import pytest, which # pylint may inspect. $PY_EXE -m pip install "pylint<2.6" PyYAML pytest PYLINT_RUNNER_ARGS="--yaml-rcfile=.pylintrc.yml" if test -f .pylintrc-local.yml; then PYLINT_RUNNER_ARGS="$PYLINT_RUNNER_ARGS --yaml-rcfile=.pylintrc-local.yml" fi $PY_EXE run-pylint.py $PYLINT_RUNNER_ARGS "$@" } # }}} # vim: foldmethod=marker:sw=2
prepare-and-run-pylint.sh +1 −20 Original line number Diff line number Diff line Loading @@ -6,23 +6,4 @@ curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support. source ci-support.sh build_py_project curl -L -O -k "${ci_support}/run-pylint.py" if ! test -f .pylintrc.yml; then curl -o .pylintrc.yml "${ci_support}/.pylintrc-default.yml" fi # <2.6 version bound put in place out of an abundance of cautiousness, no particular reason # 2020-07-15 AK # pytest is being installed since test_*.py modules may import pytest, which # pylint may inspect. $PY_EXE -m pip install "pylint<2.6" PyYAML pytest PYLINT_RUNNER_ARGS="--yaml-rcfile=.pylintrc.yml" if test -f .pylintrc-local.yml; then PYLINT_RUNNER_ARGS="$PYLINT_RUNNER_ARGS --yaml-rcfile=.pylintrc-local.yml" fi $PY_EXE run-pylint.py $PYLINT_RUNNER_ARGS "$@" run_pylint "$@"