Skip to content

Commit

Permalink
chore: fix pylint message redefined-variable-type
Browse files Browse the repository at this point in the history
  • Loading branch information
jenstroeger committed Oct 1, 2024
1 parent 6ef2447 commit efaebee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/macaron/slsa_analyzer/checks/build_as_code_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
confidence=Confidence.HIGH,
)
)
overall_res = CheckResultType.PASSED
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
try:
for build_command in ci_service.get_build_tool_commands(
callgraph=ci_info["callgraph"], build_tool=tool
Expand Down Expand Up @@ -263,7 +263,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
confidence=confidence,
)
)
overall_res = CheckResultType.PASSED
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
except CallGraphError as error:
logger.debug(error)

Expand Down Expand Up @@ -292,7 +292,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
confidence=Confidence.LOW,
)
)
overall_res = CheckResultType.PASSED
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type

# The check passing is contingent on at least one passing, if
# one passes treat whole check as passing. We do still need to
Expand Down
4 changes: 2 additions & 2 deletions src/macaron/slsa_analyzer/checks/build_service_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
confidence=confidence,
)
)
overall_res = CheckResultType.PASSED
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
except CallGraphError as error:
logger.debug(error)

Expand Down Expand Up @@ -193,7 +193,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
confidence=Confidence.LOW,
)
)
overall_res = CheckResultType.PASSED
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type

# The check passing is contingent on at least one passing, if
# one passes treat whole check as passing. We do still need to
Expand Down
3 changes: 1 addition & 2 deletions src/macaron/slsa_analyzer/checks/provenance_l3_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,7 @@ class Feedback(NamedTuple):
result_value = CheckResultType.FAILED
else:
result_tables.append(ProvenanceL3VerifiedFacts(confidence=Confidence.HIGH))
result_value = CheckResultType.PASSED
return CheckResultData(result_tables=result_tables, result_type=result_value)
return CheckResultData(result_tables=result_tables, result_type=CheckResultType.PASSED)

return CheckResultData(result_tables=result_tables, result_type=result_value)

Expand Down

0 comments on commit efaebee

Please sign in to comment.