Skip to content

Commit 4a6c06b

Browse files
committed
Formatting Files
1 parent de4da1a commit 4a6c06b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pytest_func_cov/plugin.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def pytest_terminal_summary(self, terminalreporter):
100100
output_options = self.args.known_args_namespace.func_cov_report
101101
include_missing = "term-missing" in output_options
102102
include_json = "json" in output_options
103-
103+
104104
tr = terminalreporter
105105
cwd = os.getcwd()
106106

@@ -154,10 +154,10 @@ def pytest_terminal_summary(self, terminalreporter):
154154

155155
args = ("TOTAL", total_funcs, total_miss, total_cover)
156156
if include_json:
157-
report_data={
158-
"total_funcs":total_funcs,
159-
"total_miss":total_miss,
160-
"total_cover":total_cover
157+
report_data = {
158+
"total_funcs": total_funcs,
159+
"total_miss": total_miss,
160+
"total_cover": total_cover,
161161
}
162162
with open("func_report.json", "w") as json_file:
163163
json.dump(report_data, json_file, indent=4)

pytest_func_cov/tracking.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def register_function(self, f, parent_class=None):
4040
f (FunctionType): Function to track
4141
parent_class (Type): Parent class of the function if part of a
4242
class; defaults to None
43-
43+
4444
Raises:
4545
MonitoringError: if f seems to be a classmethod but it does not have
4646
an __func__ attribute holding the wrapped method.
@@ -94,7 +94,7 @@ def registered_functions(self):
9494
def called_functions(self):
9595
"""
9696
Returns:
97-
Tuple[Tuple[str, Tuple[FunctionType, ...]], ...]: all called registered
97+
Tuple[Tuple[str, Tuple[FunctionType, ...]], ...]: all called registered
9898
functions, grouped by module
9999
"""
100100
return tuple(
@@ -139,7 +139,7 @@ def record_call(self, f, source_file, source_function):
139139
originates
140140
source_function (str): Name of the function from where the call
141141
originates
142-
142+
143143
Returns:
144144
bool: True if the call was recorded, False otherwise.
145145
"""
@@ -344,13 +344,13 @@ def get_methods_defined_in_class(cls):
344344

345345
def find_modules(path):
346346
"""
347-
Discover all Python module files in a path. Uses os.walk to recursively traverse
348-
all the nested directories but does not follow symlinks. Returns a generator
347+
Discover all Python module files in a path. Uses os.walk to recursively traverse
348+
all the nested directories but does not follow symlinks. Returns a generator
349349
of 2-tuples, (absolute_file_path, absolute_module_name).
350350
351351
Args:
352352
path (str):
353-
353+
354354
Returns:
355355
Generator[Tuple[str, str], None, None]
356356
"""

0 commit comments

Comments
 (0)