pre-commit: add bandit hook and config file

This commit is contained in:
Dag Heyman 2020-06-12 13:39:16 +02:00
parent 4b85952e03
commit a94211a0d9
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338
2 changed files with 9 additions and 1 deletions

2
.bandit Normal file
View File

@ -0,0 +1,2 @@
[bandit]
exclude: /test

View File

@ -3,8 +3,14 @@ repos:
rev: 3.7.9
hooks:
- id: flake8
exclude: '^(fido2|test)/_pyu2f/.*'
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
exclude: '^(fido2|test)/_pyu2f/.*'
exclude: '^(fido2|test)/_pyu2f/.*'
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
exclude: ^test/