Add MyPy coverage and enable type checking in CI - #397
Add MyPy coverage and enable type checking in CI#397google-labs-jules[bot] wants to merge 1 commit into
Conversation
- Configure MyPy in pyproject.toml - Fix existing type errors in examples and tests - Enable MyPy check in GitHub Actions and Makefile - Modernize import in examples (sys instead of os.sys) - Add missing imports in tests for proper type checking
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
This PR adds MyPy to the project to enforce static type checking.
Changes include:
[tool.mypy]topyproject.tomlwithignore_missing_importsandcheck_untyped_defs.import unittestin test files and incorrect usage ofos.sysin examples.flask_cors/core.pywhereheaderswas initialized asMultiDictbut MyPy couldn't infer the type correctly without a hint, and handlingNoneinexpose_headers..github/workflows/main.yml.Makefileto include themypycheck inmake check.PR created automatically by Jules for task 3985676042734546971 started by @corydolphin