Initial configuration for Bandit and Prospector

With this configuration it should be feasible to achieve a perfect score
without contortion.

Rules skiped for Bandit:
B101: assert_used
B104: hardcoded_bind_all_interfaces
B404: import_subprocess
B603: subprocess_without_shell_equals_true
B606: start_process_with_no_shell
B607: start_process_with_partial_path

Rules skiped for pylint:
- too-many-statements
- too-many-locals
- too-many-function-args
- too-many-arguments
- too-many-branches
- bare-except
- protected-access
- no-else-return
This commit is contained in:
vieira 2017-11-09 00:03:57 +00:00 committed by Brian May
parent 112931dd2c
commit 6a488b3db9
2 changed files with 22 additions and 0 deletions

3
.bandit Normal file
View File

@ -0,0 +1,3 @@
[bandit]
exclude: sshuttle/tests
skips: B101,B104,B404,B603,B606,B607

19
.prospector.yml Normal file
View File

@ -0,0 +1,19 @@
strictness: medium
pylint:
disable:
- too-many-statements
- too-many-locals
- too-many-function-args
- too-many-arguments
- too-many-branches
- bare-except
- protected-access
- no-else-return
pep8:
options:
max-line-length: 79
mccabe:
run: false