Skip to content
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

Enable type checking of the tests folder #3336

Merged
merged 3 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lint: FORCE
ruff check .
black --check *.py pyro examples tests scripts profiler
python scripts/update_headers.py --check
mypy --install-types --non-interactive pyro scripts
mypy --install-types --non-interactive pyro scripts tests

license: FORCE
python scripts/update_headers.py
Expand Down
40 changes: 40 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,43 @@ warn_unused_ignores = True
[mypy-pyro.util.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.test_primitives]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.test_generic]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.poutine.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.ops.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.optim.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.perf.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.nn.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.infer.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.distributions.*]
ignore_errors = True
warn_unused_ignores = True

[mypy-tests.contrib.*]
ignore_errors = True
warn_unused_ignores = True
Loading