From e38a80773d4eace4d41628154c68fe3c902258c2 Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Tue, 25 Mar 2025 17:19:07 +0100 Subject: [PATCH] [5.1.x] Pinned black == 24.10.0 in GitHub actions, pre-commit and test requirements. --- .github/workflows/linters.yml | 2 +- .pre-commit-config.yaml | 4 ++-- tests/requirements/py3.txt | 2 +- tox.ini | 2 +- 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 .