Skip to content

Commit

Permalink
fix: pin black to 23.11.0 (#19)
Browse files Browse the repository at this point in the history
This commit temporary pins black to 23.11.0 since version https://github.com/psf/black/releases/tag/23.12.0
breaks this action (see #18).
  • Loading branch information
rickstaa authored Dec 12, 2023
1 parent 498ac25 commit 812c19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3-slim
ENV PYTHONDONTWRITEBYTECODE 1 \
PYTHONUNBUFFERED 1

RUN python -m venv venv && . venv/bin/activate && pip install --upgrade pip && venv/bin/pip install --upgrade --no-cache-dir black
RUN python -m venv venv && . venv/bin/activate && pip install --upgrade pip && venv/bin/pip install --upgrade --no-cache-dir black==23.11.0

Check warning on line 6 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

[hadolint] Dockerfile#L6 <DL3013>(https://github.com/hadolint/hadolint/wiki/DL3013)

Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`
Raw output
message:"Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`" location:{path:"Dockerfile" range:{start:{line:6 column:1}}} severity:WARNING source:{name:"hadolint" url:"https://github.com/hadolint/hadolint"} code:{value:"DL3013" url:"https://github.com/hadolint/hadolint/wiki/DL3013"}

Check warning on line 6 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

[hadolint] Dockerfile#L6 <DL3042>(https://github.com/hadolint/hadolint/wiki/DL3042)

Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`
Raw output
message:"Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`" location:{path:"Dockerfile" range:{start:{line:6 column:1}}} severity:WARNING source:{name:"hadolint" url:"https://github.com/hadolint/hadolint"} code:{value:"DL3042" url:"https://github.com/hadolint/hadolint/wiki/DL3042"}

Check notice on line 6 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

[hadolint] Dockerfile#L6 <SC1091>(https://github.com/koalaman/shellcheck/wiki/SC1091)

Not following: File not included in mock.
Raw output
message:"Not following: File not included in mock." location:{path:"Dockerfile" range:{start:{line:6 column:1}}} severity:INFO source:{name:"hadolint" url:"https://github.com/hadolint/hadolint"} code:{value:"SC1091" url:"https://github.com/koalaman/shellcheck/wiki/SC1091"}

COPY entrypoint.sh /entrypoint.sh

Expand Down

0 comments on commit 812c19b

Please sign in to comment.