File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/pysonar_scanner/configuration Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class CoverageRCConfigurationLoader:
28
28
@staticmethod
29
29
def load (base_dir : pathlib .Path ) -> dict [str , str ]:
30
30
config_file_path = base_dir / ".coveragerc"
31
- result_dict = {}
31
+ result_dict : dict [ str , str ] = {}
32
32
33
33
coverage_properties = CoverageRCConfigurationLoader .__read_config (config_file_path )
34
34
exclusion_properties = CoverageRCConfigurationLoader .__read_coverage_exclusions_properties (
@@ -39,7 +39,7 @@ def load(base_dir: pathlib.Path) -> dict[str, str]:
39
39
40
40
@staticmethod
41
41
def __read_config (config_file_path : pathlib .Path ) -> dict [str , Any ]:
42
- config_dict = {}
42
+ config_dict : dict [ str , Any ] = {}
43
43
if not config_file_path .exists ():
44
44
logging .debug (f"Configuration file not found: { config_file_path } " )
45
45
return config_dict
@@ -66,11 +66,11 @@ def __read_coverage_exclusions_properties(
66
66
config_file_path : pathlib .Path , coverage_properties : dict [str , Any ]
67
67
) -> dict [str , Any ]:
68
68
result_dict = {}
69
- if not "run" in coverage_properties :
69
+ if "run" not in coverage_properties :
70
70
logging .debug (f"The run key was not found in { config_file_path } " )
71
71
return result_dict
72
72
73
- if not "omit" in coverage_properties ["run" ]:
73
+ if "omit" not in coverage_properties ["run" ]:
74
74
logging .debug (f"The run.omit was not found in { config_file_path } " )
75
75
return result_dict
76
76
You can’t perform that action at this time.
0 commit comments