tox.ini, constraints.txt: Lock the version of black to <24

The formatting produced by black versions before 24 matches the current
formatting of the code.

Change-Id: I045f22d2f32a09d4683867293e81512f2abd1036
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/434997
Tested-by: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
This commit is contained in:
Peter Kjellerstedt 2024-08-13 20:02:55 +02:00 committed by LUCI
parent e59e2ae757
commit e5ae870a2f
2 changed files with 4 additions and 0 deletions

1
constraints.txt Normal file
View File

@ -0,0 +1 @@
black<24

View File

@ -30,6 +30,7 @@ python =
[testenv] [testenv]
deps = deps =
-c constraints.txt
black black
flake8 flake8
isort isort
@ -44,6 +45,7 @@ setenv =
[testenv:lint] [testenv:lint]
skip_install = true skip_install = true
deps = deps =
-c constraints.txt
black black
flake8 flake8
commands = commands =
@ -53,6 +55,7 @@ commands =
[testenv:format] [testenv:format]
skip_install = true skip_install = true
deps = deps =
-c constraints.txt
black black
flake8 flake8
commands = commands =