-
Notifications
You must be signed in to change notification settings - Fork 1.7k
tests: skip mypy for packages without py.typed #15565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -142,6 +142,15 @@ def format(session): | |||||
| ) | ||||||
|
|
||||||
|
|
||||||
| @nox.session(python=DEFAULT_PYTHON_VERSION) | ||||||
| def mypy(session): | ||||||
| """Run the type checker.""" | ||||||
|
|
||||||
| # TODO(https://github.com/googleapis/google-cloud-python/issues/13362): | ||||||
| # Enable mypy once this bug is fixed. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment 'Enable mypy once this bug is fixed' is a bit vague. It would be clearer to state what needs to be done to enable
Suggested change
|
||||||
| session.skip("Skip mypy since this library doesn't have py.typed") | ||||||
|
|
||||||
|
|
||||||
| @nox.session(python=DEFAULT_PYTHON_VERSION) | ||||||
| def lint_setup_py(session): | ||||||
| """Verify that setup.py is valid (including RST check).""" | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -142,6 +142,15 @@ def format(session): | |||||
| ) | ||||||
|
|
||||||
|
|
||||||
| @nox.session(python=DEFAULT_PYTHON_VERSION) | ||||||
| def mypy(session): | ||||||
| """Run the type checker.""" | ||||||
|
|
||||||
| # TODO(https://github.com/googleapis/google-cloud-python/issues/13362): | ||||||
| # Enable mypy once this bug is fixed. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment 'Enable mypy once this bug is fixed' is a bit vague. It would be clearer to state what needs to be done to enable
Suggested change
|
||||||
| session.skip("Skip mypy since this library doesn't have py.typed") | ||||||
|
|
||||||
|
|
||||||
| @nox.session(python=DEFAULT_PYTHON_VERSION) | ||||||
| def lint_setup_py(session): | ||||||
| """Verify that setup.py is valid (including RST check).""" | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -142,6 +142,15 @@ def format(session): | |||||
| ) | ||||||
|
|
||||||
|
|
||||||
| @nox.session(python=DEFAULT_PYTHON_VERSION) | ||||||
| def mypy(session): | ||||||
| """Run the type checker.""" | ||||||
|
|
||||||
| # TODO(https://github.com/googleapis/google-cloud-python/issues/13362): | ||||||
| # Enable mypy once this bug is fixed. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment 'Enable mypy once this bug is fixed' is a bit vague. It would be clearer to state what needs to be done to enable
Suggested change
|
||||||
| session.skip("Skip mypy since this library doesn't have py.typed") | ||||||
|
|
||||||
|
|
||||||
| @nox.session(python=DEFAULT_PYTHON_VERSION) | ||||||
| def lint_setup_py(session): | ||||||
| """Verify that setup.py is valid (including RST check).""" | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment 'Enable mypy once this bug is fixed' is a bit vague. It would be clearer to state what needs to be done to enable
mypyfor this package. Consider rephrasing to clarify that apy.typedfile is needed.