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

Commit

Permalink
Run flake8 tests to find Python syntax errors and undefined names (#1217
Browse files Browse the repository at this point in the history
)

* Run flake8 tests to find Python syntax errors and undefined names

* python3 -m pip install flake8

* —user

* python3 -m flake8

* IGNORE=./tools/nni_annotation/*:F821,./examples/trials/mnist-nas/mnist.py:F821

* IGNORE=./tools/nni_annotation/testcase:F821,./examples/trials/mnist-nas/mnist.py:F821

* flake8 . --per-file-ignores=$IGNORE
  • Loading branch information
cclauss authored and xuehui1991 committed Jul 10, 2019
1 parent eb5afd7 commit 917ce97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
- script: |
source install.sh
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install flake8 --user
IGNORE=./tools/nni_annotation/testcase/*:F821,./examples/trials/mnist-nas/mnist.py:F821
python3 -m flake8 . --count --per-file-ignores=$IGNORE --select=E9,F63,F72,F82 --show-source --statistics
displayName: 'Run flake8 tests to find Python syntax errors and undefined names'
- script: |
cd test
source unittest.sh
Expand Down

0 comments on commit 917ce97

Please sign in to comment.