aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 10:31:27 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 10:31:27 +0200
commite9fecbf83077ec18b764b2b4c0065698a023f762 (patch)
tree68358a5b2cbd9440afbc5a50d23fa3b4497aa7a4
parent36d7e3fcd645ec9b5a7466046e044a2f1c1167ad (diff)
downloadmitmproxy-e9fecbf83077ec18b764b2b4c0065698a023f762.tar.gz
mitmproxy-e9fecbf83077ec18b764b2b4c0065698a023f762.tar.bz2
mitmproxy-e9fecbf83077ec18b764b2b4c0065698a023f762.zip
add landscape/prospector config
-rw-r--r--.landscape.yml13
-rw-r--r--README.mkd3
-rwxr-xr-xcheck_coding_style.sh20
3 files changed, 15 insertions, 21 deletions
diff --git a/.landscape.yml b/.landscape.yml
new file mode 100644
index 00000000..5926e7bf
--- /dev/null
+++ b/.landscape.yml
@@ -0,0 +1,13 @@
+max-line-length: 120
+pylint:
+ disable:
+ - missing-docstring
+ - protected-access
+ - too-few-public-methods
+ - too-many-arguments
+ - too-many-instance-attributes
+ - too-many-locals
+ - too-many-public-methods
+ - too-many-return-statements
+ - too-many-statements
+ - unpacking-non-sequence
diff --git a/README.mkd b/README.mkd
index 09f46ea9..135cafbe 100644
--- a/README.mkd
+++ b/README.mkd
@@ -1,4 +1,5 @@
-[![Build Status](https://img.shields.io/travis/mitmproxy/mitmproxy/master.svg)](https://travis-ci.org/mitmproxy/mitmproxy)
+[![Build Status](https://img.shields.io/travis/mitmproxy/mitmproxy/master.svg)](https://travis-ci.org/mitmproxy/mitmproxy)
+[![Code Health](https://landscape.io/github/mitmproxy/mitmproxy/master/landscape.svg?style=flat)](https://landscape.io/github/mitmproxy/mitmproxy/master)
[![Coverage Status](https://img.shields.io/coveralls/mitmproxy/mitmproxy/master.svg)](https://coveralls.io/r/mitmproxy/mitmproxy)
[![Downloads](https://img.shields.io/pypi/dm/mitmproxy.svg?color=orange)](https://pypi.python.org/pypi/mitmproxy)
[![Latest Version](https://img.shields.io/pypi/v/mitmproxy.svg)](https://pypi.python.org/pypi/mitmproxy)
diff --git a/check_coding_style.sh b/check_coding_style.sh
deleted file mode 100755
index 5b38e003..00000000
--- a/check_coding_style.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-autopep8 -i -r -a -a .
-if [[ -n "$(git status -s)" ]]; then
- echo "autopep8 yielded the following changes:"
- git status -s
- git --no-pager diff
- exit 1
-fi
-
-autoflake -i -r --remove-all-unused-imports --remove-unused-variables .
-if [[ -n "$(git status -s)" ]]; then
- echo "autoflake yielded the following changes:"
- git status -s
- git --no-pager diff
- exit 1
-fi
-
-echo "Coding style seems to be ok."
-exit 0