Test cases for the command line.
To begin we test that "mypy <directory>[/]" always recurses down the whole tree.
| Class | PythonCmdlineSuite |
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 |
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:str | Undocumented |
| Returns | |
List[ | Undocumented |
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:str | Undocumented |
| Returns | |
Optional[ | Undocumented |