Skip to content

Commit a8d2115

Browse files
committed
fix: bandit scan false positive
1 parent a072788 commit a8d2115

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

linting.sh

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ autoflake -r --in-place --remove-unused-variables --expand-star-imports --remov
55

66
flake8 pymdoccbor --count --select=E9,F63,F7,F82 --show-source --statistics
77
flake8 pymdoccbor --max-line-length 120 --count --statistics
8+
9+
bandit -r -x pymdoccbor/test* pymdoccbor/*

pymdoccbor/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def shuffle_dict(d: dict):
4747

4848
keys = list(d.keys())
4949

50-
for i in range(random.randint(3, 27)):
50+
for i in range(random.randint(3, 27)): # nosec: B311
5151
random.shuffle(keys)
5252

5353
return dict([(key, d[key]) for key in keys])

0 commit comments

Comments
 (0)