Skip to content

[pyproject.toml] how to skip assert_used B101 only in test files #954

Answered by mportesdev
copdips asked this question in Q&A
Discussion options

You must be logged in to vote

This might work, but I haven't tested it.

[tool.bandit.assert_used]
skips = ["*/*_test.py", "*/test_*.py"]

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@copdips
Comment options

@copdips
Comment options

Answer selected by copdips
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants