From df84df836a6492b4deed9e1a2c35a3b4d6981397 Mon Sep 17 00:00:00 2001 From: Alex Law Date: Thu, 19 Oct 2023 10:30:07 -0700 Subject: [PATCH] Disable shellcheck to pass linting --- dev/django.dockerfile | 1 + stage/Dockerfile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dev/django.dockerfile b/dev/django.dockerfile index 496fd93b..b6b895d4 100644 --- a/dev/django.dockerfile +++ b/dev/django.dockerfile @@ -9,6 +9,7 @@ WORKDIR /code SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Download Poetry into Path +# shellcheck disable=SC2034 RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry POETRY_VERSION=1.3.0 python3 - ENV PATH=/opt/poetry/bin:$PATH diff --git a/stage/Dockerfile b/stage/Dockerfile index 730d3289..246ef187 100644 --- a/stage/Dockerfile +++ b/stage/Dockerfile @@ -29,6 +29,9 @@ SHELL ["/bin/sh", "-o", "pipefail", "-c"] RUN apk update && apk add --no-cache curl gcc musl-dev libffi-dev jq # I could not make the linter accept 4006, so I will put this here. Whoever is interested should find a way to resolve this without ignoring. # hadolint ignore=DL4006 + +# Disabling shellcheck SC2034 because it considers the unused variables POETRY_HOME and POETRY_VERSION as a bug +# shellcheck disable=SC2034 RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry POETRY_VERSION=1.3.0 python3 - COPY backend/pyproject.toml .