From 538713679e4541c85984acae3149a3f1b3dec8aa Mon Sep 17 00:00:00 2001 From: "Mr. Walls" Date: Sat, 13 Jul 2024 12:00:01 -0700 Subject: [PATCH 1/4] Fixup typo (- Fixes #50 -) --- tests/profiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/profiling.py b/tests/profiling.py index 7b850c2..6b2a352 100644 --- a/tests/profiling.py +++ b/tests/profiling.py @@ -132,7 +132,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 From b0fc5e0d98b72ce8089f132df65ef15dbc82a94d Mon Sep 17 00:00:00 2001 From: "Mr. Walls" Date: Sun, 14 Jul 2024 19:06:25 -0700 Subject: [PATCH 2/4] Added styleistic newline for FLK-D204 linter --- tests/profiling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/profiling.py b/tests/profiling.py index 7b850c2..c92b78a 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() From aa386dbd3f5f53819d068d3b72db47b06d437ce9 Mon Sep 17 00:00:00 2001 From: "Mr. Walls" Date: Sun, 14 Jul 2024 19:10:02 -0700 Subject: [PATCH 3/4] Refactored docstring for style to scilence linter FLK-D209. --- tests/test_usage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) From f0a2ad45f45638eae1c9e555602b0edf382adb3c Mon Sep 17 00:00:00 2001 From: "Mr. Walls" Date: Sun, 14 Jul 2024 19:43:36 -0700 Subject: [PATCH 4/4] Fixup .codecov.yml --- .codecov.yml | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) 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