Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Enable pylint on PR pipeline #1672

Merged
merged 10 commits into from
Oct 31, 2019
9 changes: 8 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ jobs:
PYTHON_VERSION: '3.6'

steps:
- script: python3 -m pip install --upgrade pip setuptools --user
- script: |
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install pylint==2.3.1 --user
displayName: 'Install python tools'
- script: |
python3 -m pylint --rcfile pylintrc tools
python3 -m pylint --rcfile src/sdk/pynni/pylintrc src/sdk/pycli/nnicli
python3 -m pylint --rcfile src/sdk/pynni/pylintrc src/sdk/pynni/nni
displayName: 'Run pylint'
- script: |
python3 -m pip install torch==0.4.1 --user
python3 -m pip install torchvision==0.2.1 --user
Expand Down