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

ENH: allow running mypy through runtests.py #17123

Merged
merged 1 commit into from
Aug 24, 2020
Merged

Conversation

person142
Copy link
Member

Currently running mypy with the NumPy stubs configured requires
either:

  • Installing NumPy
  • Adding the source directory to MYPYPATH and linking to the mypy.ini

Both options are somewhat inconvenient, so add a --mypy option to
runtests that handles setting things up for you.

This will also be useful in the future for any typing codegen since it
will ensure the project is built before type checking.

Currently running mypy with the NumPy stubs configured requires
either:

- Installing NumPy
- Adding the source directory to MYPYPATH and linking to the mypy.ini

Both options are somewhat inconvenient, so add a `--mypy` option to
runtests that handles setting things up for you.

This will also be useful in the future for any typing codegen since it
will ensure the project is built before type checking.
@person142
Copy link
Member Author

Equivalent thing in SciPy is here:

https://github.com/scipy/scipy/blob/master/runtests.py#L497

@BvB93
Copy link
Member

BvB93 commented Aug 21, 2020

Looks good to me.

@mattip mattip merged commit fa45695 into numpy:master Aug 24, 2020
@mattip
Copy link
Member

mattip commented Aug 24, 2020

Thanks @person142

@BvB93 BvB93 mentioned this pull request Sep 7, 2020
@charris charris mentioned this pull request Oct 10, 2020
20 tasks
charris added a commit to charris/numpy that referenced this pull request Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants