Skip to content

Commit 01c7699

Browse files
committed
fix: bandit config
1 parent 7381983 commit 01c7699

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.bandit

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[bandit]
2+
# Bandit configuration for pfSense redactor
3+
4+
# Exclude test directories from assert checks
5+
# Using assert in tests is standard pytest practice
6+
exclude_dirs = /tests/
7+
8+
# Skip assert_used check (B101) for test files
9+
skips = B101
10+
11+
# Test files are not compiled to optimised bytecode in production
12+
# so assert statements in tests are not a security concern

0 commit comments

Comments
 (0)