diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-02-01 15:45:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 15:45:12 +0100 |
commit | 46466302a96b7717a20848060921fc3843c755da (patch) | |
tree | d2e7a74377eff13d34cd3bcff22ce868a6ac93af | |
parent | 5e39acea164c3883168515caf3a45f70691f3602 (diff) | |
download | spack-46466302a96b7717a20848060921fc3843c755da.tar.gz spack-46466302a96b7717a20848060921fc3843c755da.tar.bz2 spack-46466302a96b7717a20848060921fc3843c755da.tar.xz spack-46466302a96b7717a20848060921fc3843c755da.zip |
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.
-rw-r--r-- | .github/workflows/valid-style.yml | 2 | ||||
-rw-r--r-- | 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(): |