From ab00676696dddc84ef2b5f297ae3024ef00fa46b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 4 Apr 2020 13:32:38 +0200 Subject: [PATCH] cleanup coverage --- .drone.jsonnet | 2 +- .drone.yml | 14 +++++--------- setup.cfg | 3 +++ test-requirements.txt | 1 - 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 31364c3..58fc30b 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -7,7 +7,7 @@ local PythonVersion(pyversion='2.7') = { commands: [ 'pip install -r test-requirements.txt -qq', 'pip install -qq .', - 'pytest corenetworks/tests/ --cov=corenetworks/ --no-cov-on-fail', + 'pytest --cov=corenetworks --no-cov-on-fail', ], depends_on: [ 'clone', diff --git a/.drone.yml b/.drone.yml index 56e8c1f..333ae63 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest corenetworks/tests/ --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -47,7 +47,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest corenetworks/tests/ --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -58,7 +58,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest corenetworks/tests/ --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -69,7 +69,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest corenetworks/tests/ --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -80,7 +80,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest corenetworks/tests/ --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -298,8 +298,4 @@ trigger: depends_on: - docs ---- -kind: signature -hmac: 4e001299fba8e9facecdb33b8892f3eb45d30334f47bb4babf9e78d9bcd90d09 - ... diff --git a/setup.cfg b/setup.cfg index ddb705b..ea77071 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,3 +25,6 @@ filterwarnings = ignore::FutureWarning ignore:.*collections.*:DeprecationWarning ignore:.*pep8.*:FutureWarning + +[coverage:run] +omit = **/tests/* diff --git a/test-requirements.txt b/test-requirements.txt index 7d83055..06de617 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,3 @@ -pipenv-setup pydocstyle<4.0.0 flake8 flake8-colors