8000 ENH: Lint checks for PR diffs by ganesh-k13 · Pull Request #18423 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Lint checks for PR diffs #18423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
BLD: Added linting check
  • Loading branch information
ganesh-k13 committed Mar 7, 2021
commit f43ba6df89974d050f944987711366c5f0268f60
20 changes: 20 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
0