Use black version constraints from requirements.txt (#12220)

This commit is contained in:
Adriane Boyd 2023-02-03 11:44:10 +01:00 committed by GitHub
parent 79ef6cf0f9
commit 9a454676f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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: |

View File

@ -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