Skip to content

Conversation

@CRF1408
Copy link

@CRF1408 CRF1408 commented Dec 26, 2025

Adds a GitHub Action to run mypy on the agents package and scripts, catching type errors in pull requests.


Note

Adds a CI workflow to run mypy on relevant Python code in PRs.

  • New GitHub Actions workflow python-type-check.yml triggers on changes to agents/**/*.py, scripts/python/**/*.py, pyproject.toml, or the workflow itself
  • Sets up Python 3.10, installs project with .[dev], and runs mypy agents scripts/python

Written by Cursor Bugbot for commit aec9ffb. This will update automatically on new commits. Configure here.

Adds a GitHub Action to run mypy on the agents package and scripts, catching type errors in pull requests.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to Polymarket Agents. Thank you for creating your first PR. Cheers!

python-version: "3.10"
- run: |
python -m pip install --upgrade pip
pip install .[dev]
Copy link

Choose a reason for hiding this comment

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

Workflow depends on missing pyproject.toml file

The workflow uses pip install .[dev] which requires a pyproject.toml file with a [dev] extra defined, but this file doesn't exist in the repository. The existing workflow in python-app.yml uses pip install -r requirements.txt instead. Additionally, mypy itself is not listed in requirements.txt (only mypy-extensions is present), so even if installation succeeded, the mypy command would fail.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant