summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvieira <vieira@yubo.be>2017-11-09 00:03:57 +0000
committerBrian May <brian@linuxpenguins.xyz>2017-11-09 12:02:31 +1100
commit6a488b3db9b629cf0e3c19370f716643ee7a8c42 (patch)
tree35aa6fca513fd5ccffe92ef7a29afae8abd2b85c
parent112931dd2c19c9b0b25551c36578fab7f50f662b (diff)
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
-rw-r--r--.bandit3
-rw-r--r--.prospector.yml19
2 files changed, 22 insertions, 0 deletions
diff --git a/.bandit b/.bandit
new file mode 100644
index 0000000..c91d1b2
--- /dev/null
+++ b/.bandit
@@ -0,0 +1,3 @@
+[bandit]
+exclude: sshuttle/tests
+skips: B101,B104,B404,B603,B606,B607
diff --git a/.prospector.yml b/.prospector.yml
new file mode 100644
index 0000000..b2c755e
--- /dev/null
+++ b/.prospector.yml
@@ -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