From 9a454676f3ccb0e2ecd53aa82e4108b84d5f3bb4 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Fri, 3 Feb 2023 11:44:10 +0100 Subject: [PATCH] Use black version constraints from requirements.txt (#12220) --- .github/workflows/autoblack.yml | 2 +- azure-pipelines.yml | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index 70882c3cc..555322782 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -16,7 +16,7 @@ jobs: with: ref: ${{ github.head_ref }} - uses: actions/setup-python@v4 - - run: pip install black + - run: pip install black -c requirements.txt - name: Auto-format code if needed run: black spacy # We can't run black --check here because that returns a non-zero excit diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 541656c3d..dba11bd1a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -41,7 +41,7 @@ jobs: inputs: versionSpec: "3.7" - script: | - pip install black==22.3.0 + pip install black -c requirements.txt python -m black spacy --check displayName: "black" - script: | diff --git a/requirements.txt b/requirements.txt index 1bd4518af..d6b0bc0dd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -37,4 +37,4 @@ types-mock>=0.1.1 types-setuptools>=57.0.0 types-requests types-setuptools>=57.0.0 -black>=22.0,<23.0 +black==22.3.0