Skip to content

Commit b835bc8

Browse files
fix
1 parent 6d8f9d8 commit b835bc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pysonar_scanner/configuration/coveragerc_loader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CoverageRCConfigurationLoader:
2828
@staticmethod
2929
def load(base_dir: pathlib.Path) -> dict[str, str]:
3030
config_file_path = base_dir / ".coveragerc"
31-
result_dict = {}
31+
result_dict: dict[str, str] = {}
3232

3333
coverage_properties = CoverageRCConfigurationLoader.__read_config(config_file_path)
3434
exclusion_properties = CoverageRCConfigurationLoader.__read_coverage_exclusions_properties(
@@ -39,7 +39,7 @@ def load(base_dir: pathlib.Path) -> dict[str, str]:
3939

4040
@staticmethod
4141
def __read_config(config_file_path: pathlib.Path) -> dict[str, Any]:
42-
config_dict = {}
42+
config_dict: dict[str, Any] = {}
4343
if not config_file_path.exists():
4444
logging.debug(f"Configuration file not found: {config_file_path}")
4545
return config_dict
@@ -66,11 +66,11 @@ def __read_coverage_exclusions_properties(
6666
config_file_path: pathlib.Path, coverage_properties: dict[str, Any]
6767
) -> dict[str, Any]:
6868
result_dict = {}
69-
if not "run" in coverage_properties:
69+
if "run" not in coverage_properties:
7070
logging.debug(f"The run key was not found in {config_file_path}")
7171
return result_dict
7272

73-
if not "omit" in coverage_properties["run"]:
73+
if "omit" not in coverage_properties["run"]:
7474
logging.debug(f"The run.omit was not found in {config_file_path}")
7575
return result_dict
7676

0 commit comments

Comments
 (0)