summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2024-08-13 20:02:55 +0200
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-09-12 16:05:35 +0000
commite5ae870a2ff9257940c3c30dab3bf51cefb526bd (patch)
tree67d21cd70e2601ec2d518e4b33880f6e37bc02d2
parente59e2ae757623e64f625a9cdadf1c2010ef82b34 (diff)
downloadgit-repo-e5ae870a2ff9257940c3c30dab3bf51cefb526bd.tar.gz
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>
-rw-r--r--constraints.txt1
-rw-r--r--tox.ini3
2 files changed, 4 insertions, 0 deletions
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 =
30 30
31[testenv] 31[testenv]
32deps = 32deps =
33 -c constraints.txt
33 black 34 black
34 flake8 35 flake8
35 isort 36 isort
@@ -44,6 +45,7 @@ setenv =
44[testenv:lint] 45[testenv:lint]
45skip_install = true 46skip_install = true
46deps = 47deps =
48 -c constraints.txt
47 black 49 black
48 flake8 50 flake8
49commands = 51commands =
@@ -53,6 +55,7 @@ commands =
53[testenv:format] 55[testenv:format]
54skip_install = true 56skip_install = true
55deps = 57deps =
58 -c constraints.txt
56 black 59 black
57 flake8 60 flake8
58commands = 61commands =