Searched refs:FormatFile (Results 1 – 4 of 4) sorted by relevance
/external/yapf/yapftests/ |
D | yapf_test.py | 95 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 98 formatted_code, _, _ = yapf_api.FormatFile( 120 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 143 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 171 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 187 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 213 formatted_code, _, _ = yapf_api.FormatFile( 216 formatted_code, _, _ = yapf_api.FormatFile( 226 diff, _, _ = yapf_api.FormatFile(filepath, print_diff=True) 233 result, _, _ = yapf_api.FormatFile(filepath, in_place=True) [all …]
|
/external/yapf/ |
D | README.rst | 235 The two main APIs for calling yapf are ``FormatCode`` and ``FormatFile``, these 279 ``FormatFile`` returns reformatted code from the passed file along with its encoding: 283 >>> from yapf.yapflib.yapf_api import FormatFile # reformat a file 288 >>> FormatFile("foo.py") 295 >>> FormatFile("foo.py", in_place=True)
|
/external/yapf/yapf/yapflib/ |
D | yapf_api.py | 55 def FormatFile(filename, function
|
/external/yapf/yapf/ |
D | __init__.py | 270 reformatted_code, encoding, has_change = yapf_api.FormatFile(
|