summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornessita <124304+nessita@users.noreply.github.com>2024-01-29 12:53:06 -0300
committerGitHub <noreply@github.com>2024-01-29 12:53:06 -0300
commit71dd587da9b45f5b4cd4aa93f99a9b14d444801d (patch)
treec0f45bb2e6ca787dbfb3cba9a803240bcf33b41a
parent74582b8d119a8c7d688538442b4149112b626057 (diff)
[4.2.x] Pinned black == 23.12.1 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 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 .