-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Run flake8 tests to find Python syntax errors and undefined names #1217
Conversation
azure-pipelines.yml
Outdated
@@ -13,6 +13,10 @@ jobs: | |||
- script: | | |||
source install.sh | |||
displayName: 'Install nni toolkit via source code' | |||
- script: | | |||
python3 -m pip install flake8 | |||
flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you may need to add "--user"
@cclauss Thanks for contributing this PR.
The rest errors can be fixed soon, we will merge this PR after the errors are fixed. |
@cclauss The ignore config
|
azure-pipelines.yml
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just checked locally, should change to --per-file-ignores
--per-file-ignores ./tools/nni_annotation/*:F821,./examples/trials/mnist-nas/mnist.py:F821
@cclauss Thanks, the ignore config is working now. |
No description provided.