Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pin black to 23.11.0 #19

Merged
merged 1 commit into from
Dec 12, 2023
Merged

fix: pin black to 23.11.0 #19

merged 1 commit into from
Dec 12, 2023

Conversation

rickstaa
Copy link
Owner

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).

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).
@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3013> reported by reviewdog 🐶
Pin versions in pip. Instead of pip install <package> use pip install <package>==<version> or pip install --requirement <requirements file>

@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3042> reported by reviewdog 🐶
Avoid use of cache directory with pip. Use pip install --no-cache-dir <package>

@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [hadolint] <SC1091> reported by reviewdog 🐶
Not following: File not included in mock.

@rickstaa
Copy link
Owner Author

@rickstaa rickstaa merged commit 812c19b into main Dec 12, 2023
10 checks passed
@rickstaa rickstaa deleted the hotfix_18 branch December 12, 2023 17:32
@leoefraim
Copy link

Can we unpin the black version 23.11.0 since there is a major update out there (24.XXX) so that version 23.12.0 won't fail?

@rickstaa
Copy link
Owner Author

Can we unpin the black version 23.11.0 since there is a major update out there (24.XXX) so that version 23.12.0 won't fail?

Sure, would you be open to creating a pull request and conducting a few quick tests to verify if the issue outlined in action-black#18 has been resolved? Your help with this would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants