Skip to content

Fix up deepsource #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion tests/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@

class timewith():
"""Basic timer for do_time_profile."""

def __init__(self, name=''):
self.name = name
self.start = time.time()
Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions tests/test_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading