Open
Conversation
Co-authored-by: bchen <bchen@fireworks.ai>
|
Cursor Agent can help with this pull request. Just |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
name: Pull Request
about: Propose changes to the codebase
title: "Fix type errors and enable pre-commit in CI"
labels: ''
assignees: ''
Description
This PR addresses several type errors across the codebase and integrates
pre-commithooks into the CI pipeline to enforce code quality and type checking for all future contributions.Key Changes:
eval_protocol/rewards/function_calling.py: Added explicit casts for decorated callables to resolve type mismatches.eval_protocol/rewards/lean_prover.py: Updated to use the typedreward_functiondecorator fromeval_protocol.typed_interface.eval_protocol/mcp_servers/tau2/tests/test_tau2_e2e.py: EnsuredToolMessage.idis consistently a string..github/workflows/ci.yml: Modified the CI workflow to runpre-commit run --all-files, replacing the standalonepyrightcheck and removing its suppression..pre-commit-config.yaml: Addedpre-commit>=3.7.0as a dependency to support the CI changes.Motivation:
To improve code reliability, maintainability, and ensure consistent code style and type safety across the project by preventing new type errors and style issues from being introduced.
Fixes # (issue)
Implements # (issue)
Type of change
How Has This Been Tested?
basedpyrightoutput.pre-commit run --all-fileswas executed locally to verify all hooks pass.Test Configuration:
Checklist:
black .,isort .,flake8 .)Screenshots (if applicable)
N/A
Additional context
This change establishes a baseline for type safety and code quality, ensuring future contributions adhere to defined standards.