Skip to content

Commit 390cb5d

Browse files
authored
Update bandit configuration. (#901)
1 parent 2c9f186 commit 390cb5d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

test/bandit.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# https://bandit.readthedocs.io/en/latest/config.html
2+
3+
tests:
4+
- B103
5+
- B108
6+
- B306
7+
- B307
8+
- B313
9+
- B314
10+
- B315
11+
- B316
12+
- B317
13+
- B318
14+
- B319
15+
- B320
16+
- B325
17+
- B601
18+
- B602
19+
- B604
20+
- B608
21+
- B609

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ commands =
4040
deps = -r requirements.txt
4141
ignore_errors = false
4242
commands =
43-
bandit -r doc/ examples/ pymodbus/ test/
43+
bandit -r -c test/bandit.yaml doc/ examples/ pymodbus/ test/
4444

4545
[testenv:flake8]
4646
deps = -r requirements.txt

0 commit comments

Comments
 (0)