module documentation
(source)

Test cases for the command line.

To begin we test that "mypy <directory>[/]" always recurses down the whole tree.

Class ​Python​Cmdline​Suite Undocumented
Function parse​_args Parse the first line of the program for the command line.
Function parse​_cwd Parse the second line of the program for the command line.
Function test​_python​_cmdline Undocumented
Variable cmdline​_files Undocumented
def parse_args(line): (source)

Parse the first line of the program for the command line.

This should have the form

# cmd: mypy <options>

For example:

# cmd: mypy pkg/
Parameters
line:strUndocumented
Returns
List[str]Undocumented
def parse_cwd(line): (source)

Parse the second line of the program for the command line.

This should have the form

# cwd: <directory>

For example:

# cwd: main/subdir
Parameters
line:strUndocumented
Returns
Optional[str]Undocumented
def test_python_cmdline(testcase, step): (source)

Undocumented

Parameters
testcase:DataDrivenTestCaseUndocumented
step:intUndocumented
cmdline_files: list[str] = (source)

Undocumented