python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

Add `mypy` presubmit to Python samples

Open ohmayr opened this issue 8 months ago • 1 comments

It will be helpful to include a mypy presubmit to improve the end user experience and avoid type failures for users similar to: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/13302.

Add a github presubmit that runs mypy on the samples to capture any type failures.

ohmayr avatar Apr 15 '25 20:04 ohmayr

Hi @ohmayr 👋

I’ve added a PR that implements the requested mypy presubmit workflow for Python samples: #13653

The workflow runs mypy on the samples/python directory for pull requests, helping catch type errors early and improve the developer experience.

Maintainers, happy to refine the workflow or PR if needed, and would appreciate your review/approval. Thank you!

Shriya-23 avatar Dec 03 '25 05:12 Shriya-23