Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address all current pylint and mypy warnings #40103

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ralph-msft
Copy link
Member

This addresses all pylint, and mypy warnings. This also runs tox -e black reformatting on the code base

@Copilot Copilot bot review requested due to automatic review settings March 17, 2025 22:29
@ralph-msft ralph-msft requested a review from a team as a code owner March 17, 2025 22:29
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Mar 17, 2025
@ralph-msft ralph-msft enabled auto-merge (squash) March 17, 2025 22:29
@ralph-msft ralph-msft self-assigned this Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses existing pylint and mypy warnings and applies Black reformatting across the codebase. Key changes include updates to typing annotations and overload declarations, modifications to docstrings for consistency, and minor refactoring of type conversions and parameter hints.

Reviewed Changes

Copilot reviewed 39 out of 39 changed files in this pull request and generated no comments.

File Description
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/* Updated overload declarations with "# type: ignore[override]" and adjusted parameter annotations and docstrings.
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.py Revised type hints (e.g. switching to ProxyClient) and improved numeric conversions with cast.
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common/math.py Changed type annotations from List[float] to Sequence[float] for enhanced flexibility.
Others Similar consistency changes to overloads, docstrings, and type hints are applied across evaluators.
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-ai-evaluation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Evaluation Issues related to the client library for Azure AI Evaluation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants