From e9fecbf83077ec18b764b2b4c0065698a023f762 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 18 Jun 2015 10:31:27 +0200 Subject: [PATCH] add landscape/prospector config --- .landscape.yml | 13 +++++++++++++ README.mkd | 3 ++- check_coding_style.sh | 20 -------------------- 3 files changed, 15 insertions(+), 21 deletions(-) create mode 100644 .landscape.yml delete mode 100755 check_coding_style.sh diff --git a/.landscape.yml b/.landscape.yml new file mode 100644 index 000000000..5926e7bf6 --- /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 09f46ea92..135cafbef 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 5b38e003e..000000000 --- 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