Skip to content

Run mypy (and pytype?) on code samples #1074

@tswast

Description

@tswast

So that we have some assurance that our customers can use mypy / pytype successfully from our library, I think we should run mypy / pytype on them as well.

Ideally we'd do this from the Samples Kokoro jobs, as that'll be more similar to the development environment that a customer has setup.

Step 0.

  • Add type hints to our code samples. (Maybe include in our root mypy/pytype noxfile config?)

Step 1.

Step 2.

  • Enable this feature in our samples, probably via the noxfile_config.py files.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.samplesIssues that are directly related to samples.semver: majorHint for users that this is an API breaking change.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions