-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/improve type annotations #15
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
Open
yanurag-dev
wants to merge
24
commits into
develop
Choose a base branch
from
feature/improve-type-annotations
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c75c26e
feat: Add type annotations and mypy configuration
yanurag-dev 3f4e3a0
feat: Add type annotations to model adapters
yanurag-dev 18e728e
feat: Add ParamSpec decorator typing to core.py
yanurag-dev 4cb069b
feat: Add type stubs for pandas and requests
yanurag-dev 469f4c9
fix: Use metadata variable in Dataset.sample
yanurag-dev d1f6318
feat: Start metrics.py type improvements
yanurag-dev 3d94831
feat: Fix all type errors in metrics.py and logging.py
yanurag-dev 7d2b93c
fix: Configure mypy to skip google.generativeai type checking
yanurag-dev 2a08836
fix: Add proper type annotations to config, models, results, core, an…
yanurag-dev a7a2a2e
fix: Complete type annotations for datasets.py and client.py
yanurag-dev f38a7f9
feat: Add mypy to CI/CD and documentation
yanurag-dev 87bb74c
chore: Update CI to test only Python 3.12
yanurag-dev e6254c3
fix: Remove unused imports and fix type errors
yanurag-dev 88c052d
fix: Remove unused imports and fix type errors
yanurag-dev 8b21a2f
chore(pre-commit): Update ruff-pre-commit revision to v0.14.7
yanurag-dev 8fa061b
fix(format): Apply latest ruff formatting and update pre-commit config
yanurag-dev e0a72b4
chore: Update mypy configuration for Python 3.12 and enhance type ann…
yanurag-dev e595050
chore: Remove GEMINI.md file from repo
yanurag-dev 420e169
fix(core): Update evaluation function to use wrapper for benchmark me…
yanurag-dev dcf430e
chore(ci): Update CI workflow to install metrics dependencies and fix…
yanurag-dev a3211ea
chore(ci): Update CI workflow to install all development dependencies
yanurag-dev 1da265b
refactor: Improve type safety across codebase with TypedDicts
yanurag-dev 1f7352b
fix(datasets): Enhance dataset loading logic to prioritize name from …
yanurag-dev 37c697a
refactor(cli, client, config, datasets, metrics): Clean up imports an…
yanurag-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
| branches: [main, develop] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python 3.12 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -e ".[dev,all]" | ||
|
|
||
| - name: Run ruff linter | ||
| run: ruff check benchwise tests | ||
|
|
||
| - name: Run ruff formatter check | ||
| run: ruff format --check benchwise tests | ||
|
|
||
| - name: Run mypy type checker | ||
| run: mypy benchwise --config-file=mypy.ini | ||
|
|
||
| - name: Run tests | ||
| run: python run_tests.py --basic |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -252,4 +252,4 @@ redis-data/ | |
| celery-beat-schedule | ||
|
|
||
| # AI files | ||
| CLAUDE.md | ||
| test_single_doc_file.py | ||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.