enable bandit

This commit is contained in:
mampfes
2020-12-31 15:14:26 +01:00
parent 6e01231054
commit 6f173de164
2 changed files with 18 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ repos:
- --quiet
- --format=custom
- --configfile=tests/bandit.yaml
files: ^(homeassistant|script|tests)/.+\.py$
files: ^(custom_components|script|tests)/.+\.py$
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:

17
tests/bandit.yaml Normal file
View File

@@ -0,0 +1,17 @@
# https://bandit.readthedocs.io/en/latest/config.html
tests:
- B108
- B306
- B307
- B313
- B314
- B315
- B316
- B317
- B318
- B319
- B320
- B325
- B602
- B604