From e7084943cd1c2a27f62d66d1b9d4f35c77172ec4 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Tue, 31 Dec 2019 18:12:25 +0100 Subject: [PATCH] Some minor fixes for CodeClimate --- .codeclimate.yml | 4 +++- .travis.yml | 2 +- tox.ini | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 0a040ef4e..f0d6798c2 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -4,7 +4,9 @@ engines: enabled: true config: languages: - - python + python: + python_version: 3 + mass_threshold: 64 fixme: enabled: true radon: diff --git a/.travis.yml b/.travis.yml index 6c23ff1a7..cc9e0bcb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ install: script: tox after_success: - codecov --file .tox/cov-*.xml - - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --input-type coverage.py .tox/cov-*.xml; fi" + - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --prefix $PWD/.tox/*/lib/*/site-packages --input-type coverage.py .tox/cov-*.xml; fi" - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi" notifications: irc: diff --git a/tox.ini b/tox.ini index 586253e47..5c8cca6e8 100644 --- a/tox.ini +++ b/tox.ini @@ -39,6 +39,11 @@ ignore = E127,E128,E241,FI12,FI14,FI15,FI50,FI51,FI53,FI54,FI55,W504 require-code = True min-version = 2.7 +# Duplicated for CodeClimate... +[pep8] +max-line-length = 120 +ignore = E127,E128,E241,FI12,FI14,FI15,FI50,FI51,FI53,FI54,FI55,W504 + [pytest] filterwarnings = default junit_family = xunit2