Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

tests: refactor lint nox sessions#874

Closed
parthea wants to merge 1 commit intomainfrom
refactor-lint-checks
Closed

tests: refactor lint nox sessions#874
parthea wants to merge 1 commit intomainfrom
refactor-lint-checks

Conversation

@parthea
Copy link
Copy Markdown
Contributor

@parthea parthea commented Nov 26, 2025

This change is needed as part of b/463296248. Instead of having 2 different presubmits that run lint and mypy checks, we now have these 2 patterns tested under a single nox session. This follows the pattern that we have in google-cloud-python where there is a single lint nox session.

The pytype nox session was not running as a presubmit so I've removed it. pytype has been deprecated as per this note.

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Nov 26, 2025
@parthea parthea marked this pull request as ready for review November 26, 2025 18:38
@parthea parthea requested a review from a team as a code owner November 26, 2025 18:38
@parthea parthea requested a review from a team November 26, 2025 18:38
"types-dataclasses",
"types-mock; python_version=='3.7'",
)
session.run("mypy", "google", "tests")
Copy link
Copy Markdown
Contributor

@daniel-sanche daniel-sanche Nov 26, 2025

Choose a reason for hiding this comment

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

I do think there's value in being able to run mypy on its own sometimes.

It could be annoying to have to fix all other style issues, before even seeing if the types are valid

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ack. I'll keep mypy as a separate presubmit

@parthea parthea closed this Nov 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants