Skip to content

Commit 470ee5f

Browse files
Merge pull request #52 from reactive-firewall/fix-up-deepsource
Minor Update to resolve linter issues: - PYL-W0622 ( see #50 ) - FLK-D204 - FLK-D209 - `codecov.yml` refactor for current syntax All changes are trivial and stylistic.
2 parents 03ba956 + f0a2ad4 commit 470ee5f

File tree

3 files changed

+38
-8
lines changed

3 files changed

+38
-8
lines changed

.codecov.yml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,44 @@
1+
codecov:
2+
notify:
3+
wait_for_ci: true
4+
require_ci_to_pass: true
5+
comment:
6+
behavior: default
7+
layout: reach, diff, flags, files, footer
8+
require_base: false
9+
require_changes: false
10+
require_head: true
11+
show_carryforward_flags: false
112
coverage:
13+
precision: 3
14+
round: nearest
215
status:
16+
changes: false
17+
default_rules:
18+
flag_coverage_not_uploaded_behavior: include
19+
patch: true
320
project:
4-
default: on
21+
default:
522
target: 95%
623
base: auto
24+
branches:
25+
- master
26+
- stable
27+
if_ci_failed: ignore
28+
only_pulls: false
29+
removed_code_behavior: adjust_base
730
tests:
831
target: 80%
9-
flags: tests
32+
if_ci_failed: failure
33+
only_pulls: false
34+
removed_code_behavior: fully_covered_patch
35+
flags:
36+
- tests
1037
paths:
1138
- tests
12-
39+
github_checks:
40+
annotations: true
1341
flags:
1442
tests:
1543
paths:
16-
- tests
17-
joined: false
44+
- tests

tests/profiling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112

113113
class timewith():
114114
"""Basic timer for do_time_profile."""
115+
115116
def __init__(self, name=''):
116117
self.name = name
117118
self.start = time.time()
@@ -132,7 +133,7 @@ def checkpoint(self, name=''):
132133
def __enter__(self):
133134
return self
134135

135-
def __exit__(self, type, value, traceback): # skipcq: PLY-W0622
136+
def __exit__(self, type, value, traceback): # skipcq: PYL-W0622
136137
self.checkpoint(str("finished"))
137138
pass
138139

tests/test_usage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ def checkPythonCommand(args=None, stderr=None):
9797

9898
@profiling.do_cprofile
9999
def timePythonCommand(args=None, stderr=None):
100-
"""Function for backend subprocess check_output command
101-
with support for coverage and profiling."""
100+
"""
101+
Function for backend subprocess check_output command
102+
with support for coverage and profiling.
103+
"""
102104
if args is None:
103105
args = [None]
104106
return checkPythonCommand(args, stderr)

0 commit comments

Comments
 (0)