]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
pin click pre-8.1 for black targets
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 20:07:51 +0000 (16:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 20:07:51 +0000 (16:07 -0400)
both packages seem to have a bunch of updates,
but as this branch is still formatted for python 2,
keep black at its old version and keep click before
8.1 which seems to be where symbols that are used by
the older black versions were removed

Change-Id: I432a59fb7512cf7c453815e17ec5e0559e5d6be7

.pre-commit-config.yaml
tox.ini

index f8512708ee8078f7b849f01c9a335fa5b6c6ab1b..2be64772dd08ad9d6912017ad924df7f34119ab5 100644 (file)
@@ -5,6 +5,8 @@ repos:
     rev: 21.5b1
     hooks:
     -   id: black
+        additional_dependencies:
+          - click < 8.1
 
 -   repo: https://github.com/sqlalchemyorg/zimports
     rev: v0.5.0
diff --git a/tox.ini b/tox.ini
index 505af98e80e46a5f82ed510455fb2f939cbd4b47..2000351716b2d5396ff50365d9af8ae98d9f46b2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -150,6 +150,7 @@ deps=
       pydocstyle
       pygments
       black==21.5b1
+      click<8.1
 commands =
      flake8 ./lib/ ./test/ ./examples/ setup.py doc/build/conf.py {posargs}
      black --check ./lib/ ./test/ ./examples/ setup.py doc/build/conf.py