From: Mike Bayer Date: Mon, 28 Mar 2022 20:07:51 +0000 (-0400) Subject: pin click pre-8.1 for black targets X-Git-Tag: rel_1_4_33~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32cac8f9ff223acfaea4f33798ebcb658382d145;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git pin click pre-8.1 for black targets 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 --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8512708ee..2be64772dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 505af98e80..2000351716 100644 --- 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