Answers for "mypy run on single file"

0

mypy run on single file

mypy --follow-imports=skip myproj/foo.py myproj/bar.py
Posted by: Guest on April-26-2022
0

mypy run on single file

MyPy single file options
MyPy is a strongly recommended type checker, though others exist. We typically use a per-project .mypy.ini to configure MyPy default behavior. To tell MyPy to only check certain files, use the MyPy –follow-imports= option like:

mypy --follow-imports=skip myproj/foo.py myproj/bar.py
Only certain directories can be checked like:

mypy --follow-imports=skip myproj/sub/ myproj/sub2
Once the type checks pass via mypy --follow-imports=skip, we recommend trying

mypy --follow-imports=silent
to improve robustness of the type check for those files / directories.
Posted by: Guest on April-26-2022
0

mypy run on single file

mypy --follow-imports=skip myproj/sub/ myproj/sub2
Posted by: Guest on April-26-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language