pre-commit: Integrate bandit
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com> Change-Id: I4698730bddf343c9699beb0c6389e38ba15794d2
This commit is contained in:
parent
cc5be5b4e0
commit
21d601f3f5
@ -23,3 +23,8 @@ repos:
|
||||
hooks:
|
||||
- id: hacking
|
||||
additional_dependencies: []
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.7.6
|
||||
hooks:
|
||||
- id: bandit
|
||||
args: ['-x', 'tests']
|
||||
|
@ -1,5 +1 @@
|
||||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
|
||||
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
||||
|
@ -144,7 +144,7 @@ class Cache:
|
||||
# target directory or when python executable is under /tmp (this is the
|
||||
# case when executed from ansible)
|
||||
if any([os.path.isfile(os.path.join(self._dir, '.disable')),
|
||||
sys.executable[0:4] == '/tmp']):
|
||||
sys.executable[0:4] == '/tmp']): # nosec B108
|
||||
self._disable_caching = True
|
||||
|
||||
def _get_data_for_path(self, path):
|
||||
|
@ -1,11 +1,4 @@
|
||||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
# sphinx is needed for testing the sphinxext module
|
||||
sphinx>=2.0.0,!=2.1.0 # BSD
|
||||
|
||||
bandit>=1.6.0,<1.7.0 # Apache-2.0
|
||||
pre-commit>=2.6.0 # MIT
|
||||
|
Loading…
Reference in New Issue
Block a user