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

Use Nox types in mypy session #337

Closed
cjolowicz opened this issue May 25, 2020 · 0 comments · Fixed by #342
Closed

Use Nox types in mypy session #337

cjolowicz opened this issue May 25, 2020 · 0 comments · Fixed by #342
Labels
testing Adding missing tests or correcting existing tests
Milestone

Comments

@cjolowicz
Copy link
Owner

As of Nox 2020.5.24, we can type-check noxfile.py against Nox.

The difficulty is that the mypy environment needs access to Nox's types, but these are in the global environment. One possible workaround is to simply session.install("nox"), i.e. without adding Nox as a development dependency to Poetry.

@cjolowicz cjolowicz added the testing Adding missing tests or correcting existing tests label May 25, 2020
@cjolowicz cjolowicz added this to the 2020.6.15 milestone May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Adding missing tests or correcting existing tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant