Skip to content

Commit 4a6cc5f

Browse files
committed
Move 'PyCQA/bandit' check to github actions workflow; disable B101 check
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 8f61add commit 4a6cc5f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/build-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ jobs:
8484
pip install --upgrade pre-commit
8585
python3 -m pre_commit run --show-diff-on-failure --color=always --all-files --verbose
8686
87+
# to avoid changing `.pre-commit-config.yaml` common file
88+
pip install bandit
89+
bandit -c bandit.yaml -s "B101,B404,B603,B607" -r ./benchmarks/ ./scripts/ ./third_party/intel/
90+
8791
- name: Save pip cache
8892
if: ${{ steps.pip-cache.outputs.status == 'miss' }}
8993
uses: ./.github/actions/save

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ repos:
6161
files: ^.github/workflows/integration-tests.yml.*
6262
pass_filenames: false
6363

64-
- repo: https://github.com/PyCQA/bandit
65-
rev: '1.7.9'
66-
hooks:
67-
- id: bandit
68-
files: '^(benchmarks|scripts|third_party/intel)/.*\.py$'
69-
args: ["-c", "bandit.yaml", "-s", "B404,B603,B607"]
70-
stages: [pre-commit, pre-push, manual]
71-
7264
- repo: https://github.com/pycqa/pylint
7365
rev: v3.2.6
7466
hooks:

0 commit comments

Comments
 (0)