Skip to content

Commit 18c9f81

Browse files
committed
Update bandit arguments to skip test folders and asserts
1 parent 111a259 commit 18c9f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/ci/vscode-python-ci-static-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
script: |
8181
python -m pip install -U pip
8282
python -m pip install bandit
83-
python -m bandit -r "$(Build.SourcesDirectory)\pythonFiles"
83+
python -m bandit -s B101 -x "$(Build.SourcesDirectory)\pythonFiles\tests\**\*"-r "$(Build.SourcesDirectory)\pythonFiles"
8484
continueOnError: true
8585

8686
- task: SdtReport@2

0 commit comments

Comments
 (0)