Skip to content

Commit

Permalink
Merge pull request #526 from larrybradley/bandit
Browse files Browse the repository at this point in the history
Move bandit config to pyproject.toml
  • Loading branch information
larrybradley authored Sep 20, 2023
2 parents 5c3fc71 + 37f9127 commit 7012df0
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 7012df0

Please sign in to comment.