Commit 7dc6169
committed
[CI] Add Python bandit security linter as a pre-commit hook
Bandit is a tool designed to find common security issues in Python code.
Setup `pyproject.toml` with one global bandit ignore. There were 2 instances of B101 in the code base and we can use inline ignores if needed.
https://bandit.readthedocs.io/en/latest/config.html
https://github.com/pycqa/bandit
https://bandit.readthedocs.io/en/latest/start.html#version-control-integration1 parent ba1b050 commit 7dc6169
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments