You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into some issues in some scripting where we have a local repository of stubs that generally sits in the repository at some path relative to the python code in the project. Our linting scripts might look something like:
Bug Report
I'm running into some issues in some scripting where we have a local repository of stubs that generally sits in the repository at some path relative to the python code in the project. Our linting scripts might look something like:
MYPYPATH=${PWD}/../stubs
This seems to be causing some issues in
mypy/mypy/modulefinder.py
Lines 816 to 842 in 3c7e216
Would it be problematic to normalize the paths before doing the
p.startswith(...)
check?To Reproduce
MYPYPATH=${PWD}/../any_sibling_directory mypy file_to_check.py
(edit as necessary if you don't usebash
:)Expected Behavior
I would expect mypy to be able to check this file without any problems.
Actual Behavior
mypy basically just says it won't check the file and exits (with a non-successful exit status)
Your Environment
--strict
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: