"megatron/git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "71359e1fc544d1a69e92782c79ff7731e608dac9"
Commit 917ce97f authored by cclauss's avatar cclauss Committed by xuehui
Browse files

Run flake8 tests to find Python syntax errors and undefined names (#1217)

* 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
parent eb5afd7c
...@@ -13,6 +13,11 @@ jobs: ...@@ -13,6 +13,11 @@ jobs:
- script: | - script: |
source install.sh source install.sh
displayName: 'Install nni toolkit via source code' 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: | - script: |
cd test cd test
source unittest.sh source unittest.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment