Lines Matching refs:filepath
94 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
95 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
99 filepath, style_config='chromium')
119 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
120 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
142 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
143 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
170 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
171 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
186 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
187 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
212 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
214 filepath, style_config='pep8', lines=[(1, 2)])
217 filepath, style_config='pep8', lines=[(3, 3)])
225 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
226 diff, _, _ = yapf_api.FormatFile(filepath, print_diff=True)
232 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
233 result, _, _ = yapf_api.FormatFile(filepath, in_place=True)
235 with open(filepath) as fd:
244 filepath,
266 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
267 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
277 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
278 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
296 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
297 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
314 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
315 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
323 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
324 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
342 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
344 filepath, style_config='chromium')
362 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
364 filepath, style_config='chromium')
369 with utils.TempFileContents(self.test_tmpdir, code) as filepath:
371 filepath, style_config='chromium')
421 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
422 subprocess.check_call(YAPF_BINARY + ['--diff', filepath], stdout=out)
434 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
435 p = subprocess.Popen(YAPF_BINARY + ['--in-place', filepath])
437 with io.open(filepath, mode='r', newline='') as fd:
445 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
446 p = subprocess.Popen(YAPF_BINARY + ['--in-place', filepath])
448 with io.open(filepath, mode='r', encoding='utf-8', newline='') as fd:
456 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
457 p = subprocess.Popen(YAPF_BINARY + ['--in-place', filepath])
459 with io.open(filepath, mode='r', encoding='utf-8', newline='') as fd:
537 self.test_tmpdir, unformatted_code, suffix='.py') as filepath:
539 subprocess.check_call(YAPF_BINARY + ['--diff', filepath], stdout=out)