From eb8ae9516f9d72f15f509e07de42f8f1735e43ed Mon Sep 17 00:00:00 2001 From: Miles Holland Date: Thu, 5 Sep 2024 16:00:20 -0400 Subject: [PATCH] pylint --- src/promptflow-evals/promptflow/evals/evaluate/_evaluate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/promptflow-evals/promptflow/evals/evaluate/_evaluate.py b/src/promptflow-evals/promptflow/evals/evaluate/_evaluate.py index 1443857021e..abf9cc8a2a4 100644 --- a/src/promptflow-evals/promptflow/evals/evaluate/_evaluate.py +++ b/src/promptflow-evals/promptflow/evals/evaluate/_evaluate.py @@ -29,7 +29,10 @@ ) -def _aggregate_content_safety_metrics(df: pd.DataFrame, evaluators: Dict[str, Type]) -> Tuple[list[str], dict[str, float]]: +# pylint: disable=line-too-long +def _aggregate_content_safety_metrics( + df: pd.DataFrame, evaluators: Dict[str, Type] +) -> Tuple[list[str], dict[str, float]]: """Find and aggregate defect rates for content safety metrics. Returns both a list of columns that were used to calculate defect rates and the defect rates themselves.