From 717e34bd48f2686e324b799329910df106971753 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.0.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 f590b5a7dc..a06c0ac636 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 d6ea11e8e0..00d9b65a59 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.1.0 + rev: 24.10.0 hooks: - id: black exclude: \.py-tpl$ @@ -9,7 +9,7 @@ repos: hooks: - id: blacken-docs additional_dependencies: - - black==24.1.0 + - black==24.10.0 files: 'docs/.*\.txt$' - repo: https://github.com/PyCQA/isort rev: 5.13.2 diff --git a/tests/requirements/py3.txt b/tests/requirements/py3.txt index aad91469ec..467a086b4b 100644 --- a/tests/requirements/py3.txt +++ b/tests/requirements/py3.txt @@ -2,7 +2,7 @@ aiosmtpd asgiref >= 3.7.0 argon2-cffi >= 19.2.0 bcrypt -black +black == 24.10.0 docutils >= 0.19 geoip2; python_version < '3.12' jinja2 >= 2.11.0 diff --git a/tox.ini b/tox.ini index 2e0a3b421a..9d412e53a7 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 .