From 71dd587da9b45f5b4cd4aa93f99a9b14d444801d Mon Sep 17 00:00:00 2001 From: nessita <124304+nessita@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:53:06 -0300 Subject: [PATCH] [4.2.x] Pinned black == 23.12.1 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 28526264a9..8f95264b9e 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@23.12.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14facba6d0..0e65e53e3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.12.1 hooks: - id: black exclude: \.py-tpl$ @@ -9,7 +9,7 @@ repos: hooks: - id: blacken-docs additional_dependencies: - - black==23.3.0 + - black==23.12.1 - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: diff --git a/tests/requirements/py3.txt b/tests/requirements/py3.txt index 5c93721868..7eebc20e05 100644 --- a/tests/requirements/py3.txt +++ b/tests/requirements/py3.txt @@ -3,7 +3,7 @@ asgiref >= 3.6.0 argon2-cffi >= 19.2.0 backports.zoneinfo; python_version < '3.9' bcrypt -black +black == 23.12.1 docutils geoip2; python_version < '3.12' jinja2 >= 2.11.0 diff --git a/tox.ini b/tox.ini index 28355ed01d..b5c3fedd55 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,7 @@ commands = [testenv:black] basepython = python3 usedevelop = false -deps = black +deps = black == 23.12.1 changedir = {toxinidir} commands = black --check --diff .