Programmatic API for the Tidy tool.
More...
Public Member Functions | |
| def | __init__ (self, format='txt', use_pipes=False, space_count=4, line_separator=os.linesep) |
| def | directory (self, path) |
| Tidy a directory. More... | |
| def | file (self, path, output=None) |
| Tidy a file. More... | |
| def | inplace (self, *paths) |
| Tidy file(s) in-place. More... | |
Private Member Functions | |
| def | _get_writer (self, inpath, outpath) |
| def | _is_directory (self, data) |
| def | _is_init_file (self, path) |
| def | _is_tsv (self, path) |
| def | _parse_data (self, path) |
| def | _save_directory (self, data) |
| def | _save_file (self, data, output=None) |
Private Attributes | |
| _options | |
Programmatic API for the Tidy tool.
Arguments accepted when creating an instance have same semantics as Tidy command line options with same names.
| def robotide.lib.robot.tidy.Tidy.__init__ | ( | self, | |
format = 'txt', |
|||
use_pipes = False, |
|||
space_count = 4, |
|||
line_separator = os.linesep |
|||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| def robotide.lib.robot.tidy.Tidy.directory | ( | self, | |
| path | |||
| ) |
| def robotide.lib.robot.tidy.Tidy.file | ( | self, | |
| path, | |||
output = None |
|||
| ) |
| def robotide.lib.robot.tidy.Tidy.inplace | ( | self, | |
| * | paths | ||
| ) |