From 2dbb7641835ef68f7925bada550975b31755112a Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 25 Jan 2023 12:51:37 +0100 Subject: [PATCH] CI: Add black formatting check to validation (#12182) --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 22539a763..e9ac91068 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,8 +29,9 @@ pr: - ".github/workflows/*" jobs: - # Perform basic checks for most important errors (syntax etc.) Uses the config - # defined in .flake8 and overwrites the selected codes. + # Check formatting and linting. Perform basic checks for most important errors + # (syntax etc.) Uses the config defined in setup.cfg and overwrites the + # selected codes. - job: "Validate" pool: vmImage: "ubuntu-latest" @@ -38,6 +39,10 @@ jobs: - task: UsePythonVersion@0 inputs: versionSpec: "3.7" + - script: | + pip install black==22.3.0 + python -m black spacy --check + displayName: "black" - script: | pip install flake8==5.0.4 python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics