diff --git a/Dockerfile b/Dockerfile index 59e540f..ec9472e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ RUN add-apt-repository ppa:deadsnakes/ppa -y RUN apt-get update && apt-get install -y --no-install-recommends \ ${PYTHON_VERSION} \ python3-pip -RUN ${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip +# TODO(balint) this seems to break later pip commands: "/usr/bin/pip not found" +# RUN ${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip RUN apt-get update && apt-get install -y --no-install-recommends \ python3-distutils \ python3-setuptools @@ -29,22 +30,22 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Clean up apt-get RUN apt-get clean && rm -rf /var/lib/apt/lists/* -# Install reviewdog, flake8, pylint and flakeheaven, then plugins for flakeheaven +# Install flake8, pylint and flakeheaven, then plugins for flakeheaven RUN ${PYTHON_VERSION} -m pip install --no-cache-dir \ - flake8 \ - flakeheaven \ - pylint \ - flake8-bugbear \ - flake8-comprehensions \ - flake8-return \ - flake8-simplify \ - flake8-spellcheck \ - flake8-functions \ - wemake-python-styleguide \ - flake8-markdown \ - flake8-docstrings \ - flake8-codes \ - flake8-import-order + flake8==4.0.1 \ + pylint>=2.15.0 \ + flakeheaven>=3.0.0 \ + flake8-bugbear>=22.7.1 \ + flake8-comprehensions>=3.10.0 \ + flake8-return>=1.1.3 \ + flake8-simplify>=0.19.3 \ + flake8-spellcheck>=0.28.0 \ + flake8-functions>=0.0.7 \ + wemake-python-styleguide>=0.16.1 \ + flake8-markdown>=v0.3.0 \ + flake8-docstrings>=1.6.0 \ + flake8-codes>=0.2.2 \ + flake8-import-order>=0.18.1 SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh \ diff --git a/Dockerfile.testing b/Dockerfile.testing index 09e93ba..6a58ead 100644 --- a/Dockerfile.testing +++ b/Dockerfile.testing @@ -21,7 +21,8 @@ RUN add-apt-repository ppa:deadsnakes/ppa -y RUN apt-get update && apt-get install -y --no-install-recommends \ ${PYTHON_VERSION} \ python3-pip -RUN ${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip +# TODO(balint) this seems to break later pip commands: "/usr/bin/pip not found" +# RUN ${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip RUN apt-get update && apt-get install -y --no-install-recommends \ python3-distutils \ python3-setuptools @@ -29,23 +30,23 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Clean up apt-get RUN apt-get clean && rm -rf /var/lib/apt/lists/* -# Install reviewdog, flake8, pylint and flakeheaven, then plugins for flakeheaven - +# Install flake8, pylint and flakeheaven, then plugins for flakeheaven RUN ${PYTHON_VERSION} -m pip install --no-cache-dir \ - flake8 \ - flakeheaven \ - pylint \ - flake8-bugbear \ - flake8-comprehensions \ - flake8-return \ - flake8-simplify \ - flake8-spellcheck \ - flake8-functions \ - wemake-python-styleguide \ - flake8-markdown \ - flake8-docstrings \ - flake8-codes \ - flake8-import-order + flake8==4.0.1 \ + pylint>=2.15.0 \ + flakeheaven>=3.0.0 \ + flake8-bugbear>=22.7.1 \ + flake8-comprehensions>=3.10.0 \ + flake8-return>=1.1.3 \ + flake8-simplify>=0.19.3 \ + flake8-spellcheck>=0.28.0 \ + flake8-functions>=0.0.7 \ + wemake-python-styleguide>=0.16.1 \ + flake8-markdown>=v0.3.0 \ + flake8-docstrings>=1.6.0 \ + flake8-codes>=0.2.2 \ + flake8-import-order>=0.18.1 + SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh \ diff --git a/entrypoint.sh b/entrypoint.sh index 8913378..47d3ec7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,7 +8,6 @@ if [ -n "${GITHUB_WORKSPACE}" ]; then fi export PY_EXE="${INPUT_PYTHON_VERSION}" -export INPUT_FILTER_MODE=diff_context export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" TMPFILE=$(mktemp) export TMPFILE