Home
last modified time | relevance | path

Searched refs:FormatFile (Results 1 – 4 of 4) sorted by relevance

/external/yapf/yapftests/
Dyapf_test.py95 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/
DREADME.rst235 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/
Dyapf_api.py55 def FormatFile(filename, function
/external/yapf/yapf/
D__init__.py270 reformatted_code, encoding, has_change = yapf_api.FormatFile(