Skip to content

Fix running mypy from editable install directory #5318

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

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

emmatyping
Copy link
Member

To fix this we skip checking egg directories, which is the simplest solution to this problem.

@gvanrossum
Copy link
Member

Would it be hard to add a test?

@emmatyping
Copy link
Member Author

Would it be hard to add a test?

Yes, I think so :(

The tests are designed to run in unique venvs to be isolated. This means running things from the package directory won't really work.

I will look at how the tests can be modified to make that easier. If you'd like, we could simply revert #5301 for now, until I have a better idea of how best to test it.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

OK, then I'll just approve it. I'd rather roll this forward than back.

@ilevkivskyi ilevkivskyi merged commit 7748c50 into python:master Jul 5, 2018
@emmatyping emmatyping deleted the fixeditinstall branch July 22, 2018 02:52
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.

3 participants