From 9eb171bf528b582388152ad3f74bc5c93f4ce874 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sat, 7 Oct 2017 22:13:13 +0200 Subject: [PATCH] fuck cc test coverage --- .coveragerc | 1 + .travis.yml | 2 -- README.md | 1 - satella/instrumentation/trace_back.py | 3 ++- setup.cfg | 2 +- setup.py | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.coveragerc b/.coveragerc index 98e6ca0a..618a88be 100644 --- a/.coveragerc +++ b/.coveragerc @@ -6,3 +6,4 @@ omit= tests/* examples/* docs/* +show_missing=true \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index cd2d0ba4..6ae5c802 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,5 +9,3 @@ install: script: - bash tests/test_posix/test_hang_until_sig.sh - python setup.py tests -after_success: - - CODECLIMATE_REPO_TOKEN=cc1c853d7d3b0d97a3de8e245d02b834194d30037ff8644d2b26d0e5f17c5fe6 codeclimate-test-reporter diff --git a/README.md b/README.md index 85ecbd90..97283ee7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ satella ======== [](https://travis-ci.org/piotrmaslanka/satella) [](https://codeclimate.com/github/piotrmaslanka/satella) -[](https://codeclimate.com/github/piotrmaslanka/satella/coverage) [](https://codeclimate.com/github/piotrmaslanka/satella) []() [](https://badge.fury.io/py/satella) diff --git a/satella/instrumentation/trace_back.py b/satella/instrumentation/trace_back.py index 9150730a..124d9693 100644 --- a/satella/instrumentation/trace_back.py +++ b/satella/instrumentation/trace_back.py @@ -127,7 +127,8 @@ class StoredVariable(object): try: self.pickle = pickle.dumps(value, pickle.HIGHEST_PROTOCOL) self.pickle_type = 'pickle' - except (pickle.PicklingError, TypeError, AttributeError) as e: # yes, they all can happen! + except (pickle.PicklingError, TypeError, AttributeError) as e: + # yes, they all can happen! self.pickle = repr(e.args) self.pickle_type = "failed" else: diff --git a/setup.cfg b/setup.cfg index aedf89a6..bd2f093c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ description = Utilities for writing servers in Python url = https://github.com/piotrmaslanka/satella [pycodestyle] -max-line-length=120 +max-line-length=80 [bdist_wheel] universal=1 diff --git a/setup.py b/setup.py index ada3a4d0..4cb09da7 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup(keywords=['ha', 'high availability', 'scalable', 'scalability', 'server'], "backports.typing" ], tests_require=[ - "nose", "mock", "coverage", "codeclimate-test-reporter" + "nose", "mock", "coverage" ], test_suite='nose.collector', classifiers=[ -- GitLab