Skip to content

Commit b1641de

Browse files
committed
add to bandit exclusions
1 parent 770515a commit b1641de

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

ci/check-basics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def complain(message):
150150
all_passed = False
151151

152152
print('running bandit...', flush=True)
153-
if subprocess.run([sys.executable, '-m', 'bandit', '.', '-r', '-c', '.bandit'], cwd=OMZ_ROOT).returncode != 0:
153+
if subprocess.run([sys.executable, '-m', 'bandit', '.', '-r', '-c', '.bandit',
154+
'--exclude', './cmake/cpplint/cpplint.py'], cwd=OMZ_ROOT).returncode != 0:
154155
all_passed = False
155156

156157
print('running documentation checks...', flush=True)

cmake/cpplint/cpplint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# Copyright (c) 2009 Google Inc. All rights reserved.
44
#

demos/.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ IndentPPDirectives: AfterHash
5959
SortIncludes: true
6060
ForEachMacros:
6161
- foreach
62-
- FOREACH_CHILD
62+
- FOREACH_CHILD

demos/gaze_estimation_demo/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ add_demo(NAME gaze_estimation_demo
99
SOURCES ${SOURCES}
1010
HEADERS ${HEADERS}
1111
INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include"
12-
DEPENDENCIES monitors)
12+
DEPENDENCIES monitors)

0 commit comments

Comments
 (0)