Skip to content

chore: update testing configuration and add type hints support#518

Open
hydrogen7797 wants to merge 6 commits into
runpod:mainfrom
hydrogen7797:chore/infra-quick-wins
Open

chore: update testing configuration and add type hints support#518
hydrogen7797 wants to merge 6 commits into
runpod:mainfrom
hydrogen7797:chore/infra-quick-wins

Conversation

@hydrogen7797

Copy link
Copy Markdown

No description provided.

@capy-ai

capy-ai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Capy auto-review is paused for this organization because the usage-cycle auto-review limit has been reached. Increase the limit or turn it off in billing settings to resume automatic reviews.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the project’s testing configuration (warnings/coverage settings and test dependencies) and adds PEP 561 type-hint marker support by introducing py.typed into the distributed package data.

Changes:

  • Replace deprecated asyncio.iscoroutinefunction usage in tests with inspect.iscoroutinefunction.
  • Remove asynctest from test extras and adjust pytest configuration (coverage config location + warning filtering).
  • Add runpod/py.typed and include it in setuptools package data for type-hint discovery.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_serverless/test_modules/test_fitness/test_system_checks.py Uses inspect.iscoroutinefunction to avoid deprecated asyncio API.
setup.py Removes asynctest from test extras.
runpod/py.typed Adds the PEP 561 marker file to indicate the package ships type information.
pytest.ini Switches coverage config to pyproject.toml and updates warning handling via -W options.
pyproject.toml Includes py.typed in package data and updates the test dependency group.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pytest.ini Outdated
# only warn. Don't fail the suite on them until the deps update.
ignore:'asyncio\.get_event_loop_policy' is deprecated:DeprecationWarning
ignore:'asyncio\.iscoroutinefunction' is deprecated:DeprecationWarning
addopts = --durations=10 --cov-config=pyproject.toml --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=90 -W error -W ignore::DeprecationWarning:backoff._decorator -p no:cacheprovider -p no:unraisableexception
Comment thread pyproject.toml
Comment on lines 51 to 55
[tool.setuptools.package-data]
runpod = [
"py.typed",
"serverless/binaries/gpu_test",
"serverless/binaries/README.md",
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