diff options
author | Ganesh Kathiresan <ganesh3597@gmail.com> | 2021-02-16 14:40:38 +0530 |
---|---|---|
committer | Ganesh Kathiresan <ganesh3597@gmail.com> | 2021-03-07 11:18:23 +0530 |
commit | f43ba6df89974d050f944987711366c5f0268f60 (patch) | |
tree | 9d899892aece858b29d7d6277e5a55a9046d42c8 | |
parent | 37ce99a4ab6f066f1363c33d1ec6f2b4c6c4a583 (diff) | |
download | numpy-f43ba6df89974d050f944987711366c5f0268f60.tar.gz |
BLD: Added linting check
-rw-r--r-- | azure-pipelines.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d2e251acd..5b6ec71ce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,6 +18,26 @@ stages: - stage: InitialTests jobs: + - job: Lint + condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master')) # skip for PR merges + pool: + vmImage: 'ubuntu-18.04' + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.8' + addToPath: true + architecture: 'x64' + - script: >- + python -m pip install + pycodestyle==2.5.0 + GitPython==3.1.13 + displayName: 'Install tools' + failOnStderr: true + - script: | + python tools/linter.py --branch origin/$(System.PullRequest.SourceBranch) + displayName: 'Run Lint Checks' + failOnStderr: true # Native build is based on gcc flag `-march=native` - job: Linux_baseline_native pool: |