Commit ae3ef18f authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Support flake8-quotes in flake8 job

parent d2a8c220
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -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
+1 −3
Original line number Diff line number Diff line
@@ -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