Skip to content

Commit

Permalink
Move bandit config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Sep 19, 2023
1 parent 5c3fc71 commit 37f9127
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .bandit.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,9 @@ force-exclude = """
.*
)
"""

[tool.bandit]
exclude_dirs = ['*/tests/test_casa_mask.py']

[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py', '*/tests/helpers.py']
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ skip_install = true
changedir = .
description = security check with bandit
deps = bandit
commands = bandit -r regions -c .bandit.yaml
commands = bandit -r regions -c pyproject.toml

0 comments on commit 37f9127

Please sign in to comment.