Skip to content

Commit

Permalink
Add bandit to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 11, 2023
1 parent 31cdcbd commit b9a7b24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
cache-dependency-path: .github/workflows/lint_python.yml
- run: pip install --upgrade pip wheel
# TODO: remove setuptools installation when safety==2.4.0 is released
- run: pip install --upgrade bandit codespell
- run: pip install --upgrade codespell
mypy safety setuptools
- run: bandit --recursive --skip B101,B404,B603 .
- run: codespell --ignore-words-list="commitish"
- run: pip install --editable .
- run: mypy --ignore-missing-imports --install-types --non-interactive .
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ repos:
- id: isort
args: [--add-import=from __future__ import annotations]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: ["--skip=B101,B404,B603"]

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
Expand Down

0 comments on commit b9a7b24

Please sign in to comment.