Skip to content

chore(bigquery): centralize mypy config for bigquery#17640

Merged
chalmerlowe merged 3 commits into
mainfrom
feat/centralize-mypy-bigquery
Jul 8, 2026
Merged

chore(bigquery): centralize mypy config for bigquery#17640
chalmerlowe merged 3 commits into
mainfrom
feat/centralize-mypy-bigquery

Conversation

@chalmerlowe

@chalmerlowe chalmerlowe commented Jul 7, 2026

Copy link
Copy Markdown
Contributor
  • Relies on a centralized mypy.ini file at the root of the repository to consolidate all shared and package-specific mypy exceptions.
  • Deletes the individual mypy.ini files from handwritten libraries, establishing the root configuration as the source of truth.
  • Refactored their noxfile.py files to define MYPY_CONFIG_FILE dynamically and standardized their session.run("mypy", ...) invocations.

Related to: PR #17409 and PR #17641

Note

all three PRs rely on the same centralized mypy.ini config. So you may see some minor edits in the main config that are applicable to packages in one of the other PRs. This will have no effect on those packages until their noxfiles are updated to begin using the new centralized config.

@chalmerlowe chalmerlowe changed the title feat: centralize mypy config for bigquery chore(bigquery): centralize mypy config for bigquery Jul 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request centralizes the mypy configuration by removing a local config file, updating the BigQuery noxfile to reference the repository-root mypy.ini, and reorganizing package-specific overrides in mypy.ini. However, during the reorganization, strict type-checking options for google.cloud.bigtable.data.* were accidentally moved to the broader google.cloud.bigtable.* section where errors are ignored, effectively disabling those checks. These options should be restored to the correct submodule section.

Comment thread mypy.ini
@chalmerlowe chalmerlowe marked this pull request as ready for review July 8, 2026 17:06
@chalmerlowe chalmerlowe requested review from a team as code owners July 8, 2026 17:06
@chalmerlowe chalmerlowe requested review from tswast and removed request for a team July 8, 2026 17:06
@chalmerlowe chalmerlowe merged commit 2074029 into main Jul 8, 2026
30 checks passed
@chalmerlowe chalmerlowe deleted the feat/centralize-mypy-bigquery branch July 8, 2026 17:22
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.

2 participants