mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
CI: Add black formatting check to validation (#12182)
This commit is contained in:
parent
99a05734a8
commit
2dbb764183
|
@ -29,8 +29,9 @@ pr:
|
||||||
- ".github/workflows/*"
|
- ".github/workflows/*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Perform basic checks for most important errors (syntax etc.) Uses the config
|
# Check formatting and linting. Perform basic checks for most important errors
|
||||||
# defined in .flake8 and overwrites the selected codes.
|
# (syntax etc.) Uses the config defined in setup.cfg and overwrites the
|
||||||
|
# selected codes.
|
||||||
- job: "Validate"
|
- job: "Validate"
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-latest"
|
vmImage: "ubuntu-latest"
|
||||||
|
@ -38,6 +39,10 @@ jobs:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: "3.7"
|
versionSpec: "3.7"
|
||||||
|
- script: |
|
||||||
|
pip install black==22.3.0
|
||||||
|
python -m black spacy --check
|
||||||
|
displayName: "black"
|
||||||
- script: |
|
- script: |
|
||||||
pip install flake8==5.0.4
|
pip install flake8==5.0.4
|
||||||
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics
|
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics
|
||||||
|
|
Loading…
Reference in New Issue
Block a user