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

Support flake8-bugbear

parent 855d65f3
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -445,6 +445,17 @@ install_and_run_flake8()
    echo "-----------------------------------------------------------------"
  fi

  if grep -q enable-flake8-bugbear setup.cfg; then
    FLAKE8_PACKAGES+=(flake8-bugbear)
  else
    echo "-----------------------------------------------------------------"
    echo "Consider enabling quote checking for this package by configuring"
    echo "https://github.com/PyCQA/flake8-bugbear"
    echo "in setup.cfg. Simply add a line"
    echo "# enable-flake8-bugbear"
    echo "-----------------------------------------------------------------"
  fi

  ${PY_EXE} -m pip install "${FLAKE8_PACKAGES[@]}"
  ${PY_EXE} -m flake8 "$@"
}