summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorMark Byrne <31762852+mbyrnepr2@users.noreply.github.com>2022-12-09 16:27:10 +0100
committerGitHub <noreply@github.com>2022-12-09 16:27:10 +0100
commitb5a85f68b572c14cd2661d58b4d84c0eaf5a4b11 (patch)
tree587c98df397464929ae14d6b6507dd265dd9dd4b /.pre-commit-config.yaml
parent4827cfa90b935666a84c049259367a04567aab74 (diff)
downloadpylint-git-b5a85f68b572c14cd2661d58b4d84c0eaf5a4b11.tar.gz
Fix `bandit` high-severity warnings and use pre-commit (#7913)
Remove `shell=True` argument of `subprocess.call`. Refactor: Use `subprocess.run` instead of `subprocess.call`. Add `bandit` to .pre-commit-config.yaml. Use `gitpython` for clone command. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 15d6a71d2..022cfe4be 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -146,3 +146,9 @@ repos:
pylint/__pkginfo__.py|
setup.cfg
)$
+ - repo: https://github.com/PyCQA/bandit
+ rev: 1.7.4
+ hooks:
+ - id: bandit
+ args: ["-r", "-lll"]
+ exclude: *fixtures