From 46466302a96b7717a20848060921fc3843c755da Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 1 Feb 2023 15:45:12 +0100 Subject: Pin black to 22.12.0 to avoid spurious style changes (#35282) We need to sync changes on major versions with spackbot, to avoid the bot saying everything is allright and have CI failing nonetheless. --- .github/workflows/valid-style.yml | 2 +- lib/spack/spack/bootstrap/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/valid-style.yml b/.github/workflows/valid-style.yml index e59e8dcd28..deacc52262 100644 --- a/.github/workflows/valid-style.yml +++ b/.github/workflows/valid-style.yml @@ -44,7 +44,7 @@ jobs: cache: 'pip' - name: Install Python packages run: | - python3 -m pip install --upgrade pip six setuptools types-six black mypy isort clingo flake8 + python3 -m pip install --upgrade pip six setuptools types-six black==22.12.0 mypy isort clingo flake8 - name: Setup git configuration run: | # Need this for the git tests to succeed. diff --git a/lib/spack/spack/bootstrap/environment.py b/lib/spack/spack/bootstrap/environment.py index b32b04610b..7eb8d3ad58 100644 --- a/lib/spack/spack/bootstrap/environment.py +++ b/lib/spack/spack/bootstrap/environment.py @@ -171,7 +171,7 @@ def mypy_root_spec(): def black_root_spec(): """Return the root spec used to bootstrap black""" - return _root_spec("py-black") + return _root_spec("py-black@:22.12.0") def flake8_root_spec(): -- cgit v1.2.3-60-g2f50