mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 00:04:15 +03:00
Use black version constraints from requirements.txt (#12220)
This commit is contained in:
parent
79ef6cf0f9
commit
9a454676f3
2
.github/workflows/autoblack.yml
vendored
2
.github/workflows/autoblack.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
- run: pip install black
|
- run: pip install black -c requirements.txt
|
||||||
- name: Auto-format code if needed
|
- name: Auto-format code if needed
|
||||||
run: black spacy
|
run: black spacy
|
||||||
# We can't run black --check here because that returns a non-zero excit
|
# We can't run black --check here because that returns a non-zero excit
|
||||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: "3.7"
|
versionSpec: "3.7"
|
||||||
- script: |
|
- script: |
|
||||||
pip install black==22.3.0
|
pip install black -c requirements.txt
|
||||||
python -m black spacy --check
|
python -m black spacy --check
|
||||||
displayName: "black"
|
displayName: "black"
|
||||||
- script: |
|
- script: |
|
||||||
|
|
|
@ -37,4 +37,4 @@ types-mock>=0.1.1
|
||||||
types-setuptools>=57.0.0
|
types-setuptools>=57.0.0
|
||||||
types-requests
|
types-requests
|
||||||
types-setuptools>=57.0.0
|
types-setuptools>=57.0.0
|
||||||
black>=22.0,<23.0
|
black==22.3.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user