summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-25 17:19:07 +0100
committernessita <124304+nessita@users.noreply.github.com>2025-03-25 14:11:32 -0300
commite38a80773d4eace4d41628154c68fe3c902258c2 (patch)
treecb92138a3e3d8c4220d3e4ab9debbee23ca3aa45
parent3266f2516c27dd25abebe8e8f7b8778650ab4f18 (diff)
[5.1.x] Pinned black == 24.10.0 in GitHub actions, pre-commit and test requirements.
-rw-r--r--.github/workflows/linters.yml2
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--tests/requirements/py3.txt2
-rw-r--r--tox.ini2
4 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index 7c64dc98ff..4f24db61f0 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -59,4 +59,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: black
- uses: psf/black@stable
+ uses: psf/black@24.10.0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d1c74a66c8..f4a1b84ae4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
- rev: 24.2.0
+ rev: 24.10.0
hooks:
- id: black
exclude: \.py-tpl$
@@ -9,7 +9,7 @@ repos:
hooks:
- id: blacken-docs
additional_dependencies:
- - black==24.2.0
+ - black==24.10.0
files: 'docs/.*\.txt$'
args: ["--rst-literal-block"]
- repo: https://github.com/PyCQA/isort
diff --git a/tests/requirements/py3.txt b/tests/requirements/py3.txt
index a9679af97c..26d4b982fe 100644
--- a/tests/requirements/py3.txt
+++ b/tests/requirements/py3.txt
@@ -2,7 +2,7 @@ aiosmtpd
asgiref >= 3.8.1
argon2-cffi >= 19.2.0
bcrypt
-black
+black == 24.10.0
docutils >= 0.19
geoip2
jinja2 >= 2.11.0
diff --git a/tox.ini b/tox.ini
index 7a76693f21..57da70cd09 100644
--- a/tox.ini
+++ b/tox.ini
@@ -37,7 +37,7 @@ commands =
[testenv:black]
basepython = python3
usedevelop = false
-deps = black
+deps = black == 24.10.0
changedir = {toxinidir}
commands = black --check --diff .