From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 9 Jul 2023 15:14:38 +0000 (-0700) Subject: Fix CI for Click typing issue (#3770) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/4130c65578b9ac2a42b3b18f4f38917607db3500 Fix CI for Click typing issue (#3770) https://github.com/pallets/click/issues/2558 --- diff --git a/.github/workflows/diff_shades.yml b/.github/workflows/diff_shades.yml index a126756..d685ef9 100644 --- a/.github/workflows/diff_shades.yml +++ b/.github/workflows/diff_shades.yml @@ -26,7 +26,7 @@ jobs: - name: Install diff-shades and support dependencies run: | - python -m pip install click packaging urllib3 + python -m pip install 'click==8.1.3' packaging urllib3 python -m pip install https://github.com/ichard26/diff-shades/archive/stable.zip - name: Calculate run configuration & metadata @@ -64,7 +64,7 @@ jobs: - name: Install diff-shades and support dependencies run: | python -m pip install https://github.com/ichard26/diff-shades/archive/stable.zip - python -m pip install click packaging urllib3 + python -m pip install 'click==8.1.3' packaging urllib3 # After checking out old revisions, this might not exist so we'll use a copy. cat scripts/diff_shades_gha_helper.py > helper.py git config user.name "diff-shades-gha" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a69fb64..bb64776 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,7 +47,7 @@ repos: - types-PyYAML - tomli >= 0.2.6, < 2.0.0 - types-typed-ast >= 1.4.1 - - click >= 8.1.0 + - click >= 8.1.0, != 8.1.4 - packaging >= 22.0 - platformdirs >= 2.1.0 - pytest diff --git a/pyproject.toml b/pyproject.toml index 2d8da88..175f785 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -120,6 +120,7 @@ enable-by-default = false dependencies = [ "hatch-mypyc>=0.16.0", "mypy==1.3", + "click==8.1.3", # avoid https://github.com/pallets/click/issues/2558 ] require-runtime-dependencies = true exclude = [