From e5ae870a2ff9257940c3c30dab3bf51cefb526bd Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 13 Aug 2024 20:02:55 +0200 Subject: [PATCH] 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 Reviewed-by: Josip Sokcevic Commit-Queue: Josip Sokcevic --- constraints.txt | 1 + tox.ini | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 constraints.txt diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 00000000..579c9ad8 --- /dev/null +++ b/constraints.txt @@ -0,0 +1 @@ +black<24 diff --git a/tox.ini b/tox.ini index d87fa4b9..f8bfc777 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,7 @@ python = [testenv] deps = + -c constraints.txt black flake8 isort @@ -44,6 +45,7 @@ setenv = [testenv:lint] skip_install = true deps = + -c constraints.txt black flake8 commands = @@ -53,6 +55,7 @@ commands = [testenv:format] skip_install = true deps = + -c constraints.txt black flake8 commands =