Skip to content

Commit 1f6caec

Browse files
committed
Pin the version of black being used
1 parent ba5c154 commit 1f6caec

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.DS_Store

8 KB
Binary file not shown.

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
1313
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
1414
- uses: psf/black@stable
15-
15+
with:
16+
version: "24.10.0"
17+
1618
build-and-test:
1719
# 03/27/23: it looks like there are issues with the tarballs for all python 3.6 versions
1820
# that are on ubuntu-22.04 (ubuntu-latest at the time). To maintain python compatibility
@@ -29,7 +31,7 @@ jobs:
2931
- name: Setup Python
3032
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
3133
with:
32-
python-version: '3.6'
34+
python-version: "3.6"
3335

3436
- name: Run tests
3537
env:

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ repos:
1212
- id: flake8
1313
args: ["--config=.flake8"]
1414
- repo: https://github.com/psf/black
15-
rev: 24.10.0
15+
rev: 24.4.2
1616
hooks:
1717
- id: black

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.8.6 AS base
33

44
FROM base AS lint
55

6-
RUN pip install black
6+
RUN pip install black==24.4.2
77

88
WORKDIR /data
99
ENTRYPOINT ["black"]
@@ -24,9 +24,9 @@ ENTRYPOINT [ "python", "setup.py", "install" ]
2424

2525
FROM dependencies as test
2626

27-
COPY test-requirements.txt .
27+
COPY test-requirements.txt .
2828
RUN pip install -r test-requirements.txt
2929

3030
COPY . .
3131

32-
ENTRYPOINT ["python", "-m", "unittest", "discover", "test/"]
32+
ENTRYPOINT ["python", "-m", "unittest", "discover", "test/"]

0 commit comments

Comments
 (0)