Skip to content

Commit

Permalink
Specify bandit arguments using yaml file
Browse files Browse the repository at this point in the history
Bandit not respecting values provided in .bandit file because of a known issue
PyCQA/bandit#488
  • Loading branch information
saruniitr committed Sep 6, 2023
1 parent 8cfc621 commit d4f6697
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .bandit

This file was deleted.

2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- run:
name: Bandit
command: |
pipenv run bandit -r .
pipenv run bandit -c bandit.yaml -r .
check_background_tasks_up:
machine:
Expand Down
2 changes: 2 additions & 0 deletions bandit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude_dirs: ['mail/tests', '.venv', '.git', 'tests']
skips: ['B101']

0 comments on commit d4f6697

Please sign in to comment.