Skip to content

Commit

Permalink
Fix remaining pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
diondrapeck committed Jul 20, 2024
1 parent b934c92 commit eaa5d81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _start_run(self) -> None:
self._status = RunStatus.STARTED
if self._tracking_uri is None:
LOGGER.warning(
"tracking_uri was not provided, " "The results will be saved locally, but will not be logged to Azure."
"A tracking_uri was not provided, The results will be saved locally, but will not be logged to Azure."
)
self._url_base = None
self._status = RunStatus.BROKEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ def ensure_service_availability(rai_svc_url: str, token: str, capability: str =
response = requests.get(svc_liveness_url, headers=headers)

if response.status_code != 200:
raise Exception(
raise Exception( # pylint: disable=broad-exception-raised
f"RAI service is not available in this region. Status Code: {response.status_code}"
) # pylint: disable=broad-exception-raised
)

capabilities = response.json()

if capability and capability not in capabilities:
raise Exception(
raise Exception( # pylint: disable=broad-exception-raised
f"Capability '{capability}' is not available in this region"
) # pylint: disable=broad-exception-raised
)


def submit_request(question: str, answer: str, metric: str, rai_svc_url: str, token: str) -> str:
Expand Down Expand Up @@ -132,9 +132,9 @@ def fetch_result(operation_id: str, rai_svc_url: str, credential: TokenCredentia
time.sleep(sleep_time)


def parse_response(
def parse_response( # pylint: disable=too-many-branches,too-many-statements
batch_response: List[Dict], metric_name: str
) -> List[List[dict]]: # pylint: disable=too-many-branches,too-many-statements
) -> List[List[dict]]:
"""Parse the annotation response from Responsible AI service
:param batch_response: The annotation response from Responsible AI service.
Expand Down

0 comments on commit eaa5d81

Please sign in to comment.