Skip to content

Commit da7213e

Browse files
committed
Move contents of .bandit.yml to CLI option in .pre-commit-config.yaml
This gets rid of the .bandit.yml file that was being used only against the test code.
1 parent 8cb395a commit da7213e

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

.bandit.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ test:
5454
- any-glob-to-any-file:
5555
# Add any test-related files or paths.
5656
- .ansible-lint
57-
- .bandit.yml
5857
- .flake8
5958
- .mdl_config.yaml
6059
- .yamllint

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ repos:
136136
name: bandit (tests tree)
137137
files: tests
138138
args:
139-
- --config=.bandit.yml
139+
# Skip "assert used" check since assertions are used
140+
# frequently in pytests.
141+
- --skip=B101
140142
# Run bandit on everything except the "tests" tree
141143
- repo: https://github.com/PyCQA/bandit
142144
rev: 1.8.6

0 commit comments

Comments
 (0)