diff --git a/.codecov.yml b/.codecov.yml index 2e91d53..8ace9c0 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,17 +1,44 @@ +codecov: + notify: + wait_for_ci: true + require_ci_to_pass: true +comment: + behavior: default + layout: reach, diff, flags, files, footer + require_base: false + require_changes: false + require_head: true + show_carryforward_flags: false coverage: + precision: 3 + round: nearest status: + changes: false + default_rules: + flag_coverage_not_uploaded_behavior: include + patch: true project: - default: on + default: target: 95% base: auto + branches: + - master + - stable + if_ci_failed: ignore + only_pulls: false + removed_code_behavior: adjust_base tests: target: 80% - flags: tests + if_ci_failed: failure + only_pulls: false + removed_code_behavior: fully_covered_patch + flags: + - tests paths: - tests - +github_checks: + annotations: true flags: tests: paths: - - tests - joined: false + - tests \ No newline at end of file diff --git a/tests/profiling.py b/tests/profiling.py index 7b850c2..5341521 100644 --- a/tests/profiling.py +++ b/tests/profiling.py @@ -112,6 +112,7 @@ class timewith(): """Basic timer for do_time_profile.""" + def __init__(self, name=''): self.name = name self.start = time.time() @@ -132,7 +133,7 @@ def checkpoint(self, name=''): def __enter__(self): return self - def __exit__(self, type, value, traceback): # skipcq: PLY-W0622 + def __exit__(self, type, value, traceback): # skipcq: PYL-W0622 self.checkpoint(str("finished")) pass diff --git a/tests/test_usage.py b/tests/test_usage.py index bcb2980..8750ef1 100644 --- a/tests/test_usage.py +++ b/tests/test_usage.py @@ -97,8 +97,10 @@ def checkPythonCommand(args=None, stderr=None): @profiling.do_cprofile def timePythonCommand(args=None, stderr=None): - """Function for backend subprocess check_output command - with support for coverage and profiling.""" + """ + Function for backend subprocess check_output command + with support for coverage and profiling. + """ if args is None: args = [None] return checkPythonCommand(args, stderr)