Loading ci-support.sh +23 −1 Original line number Diff line number Diff line Loading @@ -399,4 +399,26 @@ END # }}} # vim: foldmethod=marker # {{{ flake8 install_and_run_flake8() { FLAKE8_PACKAGES=(flake8 pep8-naming) if grep -q quotes setup.cfg; then true FLAKE8_PACKAGES+=(flake8-quotes) else echo "-----------------------------------------------------------------" echo "Consider enabling quote checking for this package by configuring" echo "https://github.com/zheller/flake8-quotes" echo "in setup.cfg" echo "-----------------------------------------------------------------" fi ${PY_EXE} -m pip install "${FLAKE8_PACKAGES[@]}" ${PY_EXE} -m flake8 } # }}} # vim: foldmethod=marker:sw=2 prepare-and-run-flake8.sh +1 −3 Original line number Diff line number Diff line Loading @@ -6,6 +6,4 @@ source ci-support.sh print_status_message clean_up_repo_and_working_env create_and_set_up_virtualenv ${PY_EXE} -m pip install flake8 pep8-naming ${PY_EXE} -m flake8 "$@" install_and_run_flake8 Loading
ci-support.sh +23 −1 Original line number Diff line number Diff line Loading @@ -399,4 +399,26 @@ END # }}} # vim: foldmethod=marker # {{{ flake8 install_and_run_flake8() { FLAKE8_PACKAGES=(flake8 pep8-naming) if grep -q quotes setup.cfg; then true FLAKE8_PACKAGES+=(flake8-quotes) else echo "-----------------------------------------------------------------" echo "Consider enabling quote checking for this package by configuring" echo "https://github.com/zheller/flake8-quotes" echo "in setup.cfg" echo "-----------------------------------------------------------------" fi ${PY_EXE} -m pip install "${FLAKE8_PACKAGES[@]}" ${PY_EXE} -m flake8 } # }}} # vim: foldmethod=marker:sw=2
prepare-and-run-flake8.sh +1 −3 Original line number Diff line number Diff line Loading @@ -6,6 +6,4 @@ source ci-support.sh print_status_message clean_up_repo_and_working_env create_and_set_up_virtualenv ${PY_EXE} -m pip install flake8 pep8-naming ${PY_EXE} -m flake8 "$@" install_and_run_flake8