From c77073f04068085366c3210ce7108003e0a7d143 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Wed, 7 Oct 2020 18:37:01 +0200 Subject: [PATCH] skip files in coverage (#3944) --- .codecov.yml | 9 --------- setup.cfg | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index fc024ca597..cc6a5e6a2b 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -65,12 +65,3 @@ comment: require_changes: false behavior: default # update if exists else create new after_n_builds: 23 - -# TODO: figure out how to get codecov to pick up the test results on these backends -# The actual coverage for each is 90%+ -ignore: # see: https://docs.codecov.io/docs/ignoring-paths - - "pytorch_lightning/accelerators/ddp_*.py" - - "pytorch_lightning/accelerators/ddp2_*.py" - - "pytorch_lightning/accelerators/dp_*.py" - - "pytorch_lightning/accelerators/gpu_*.py" - - "pytorch_lightning/accelerators/tpu_*.py" diff --git a/setup.cfg b/setup.cfg index 8d8bafefa5..ad6d2ef9ba 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,6 +36,13 @@ exclude_lines = warnings pass rank_zero_warn +# TODO: figure out how to get codecov to pick up the test results on these backends +# The actual coverage for each is 90%+ +omit = + pytorch_lightning/accelerators/ddp_*.py + pytorch_lightning/accelerators/ddp2_*.py + pytorch_lightning/accelerators/dp_*.py + pytorch_lightning/accelerators/tpu_*.py [flake8] # TODO: this should be 88 or 100 according PEP8