Skip to content

Commit 44d824b

Browse files
committed
Add Bandit configuration file.
1 parent 286f7e1 commit 44d824b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.bandit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bandit]
2+
skips = B311

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
image: abcminiuser/docker-ci-python:latest
1818
pull: always
1919
commands:
20-
- bandit -r src/
20+
- bandit --ini .bandit -r src/
2121

2222
- name: MyPy
2323
image: abcminiuser/docker-ci-python:latest

src/StreamDeck/Transport/LibUSBHIDAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _load_hidapi_library(self, library_search_list):
6666
library_name_no_extension = os.path.basename(os.path.splitext(lib_name)[0])
6767
try:
6868
found_lib = ctypes.util.find_library(library_name_no_extension)
69-
except: # nosec B110
69+
except:
7070
found_lib = None
7171

7272
# If we've running with a Homebrew installation, and find_library() didn't find the library in

0 commit comments

Comments
 (0)