Searched refs:style_config (Results 1 – 5 of 5) sorted by relevance
/external/yapf/yapf/ |
D | __init__.py | 138 style_config = args.style 141 if style_config is None and not args.no_local_style: 142 style_config = file_resources.GetDefaultStyleForDir(os.getcwd()) 143 style.SetGlobalStyle(style.CreateStyleFromConfig(style_config)) 175 if style_config is None and not args.no_local_style: 176 style_config = file_resources.GetDefaultStyleForDir(os.getcwd()) 182 style_config=style_config, 196 style_config=args.style, 208 style_config=None, argument 243 executor.submit(_FormatFile, filename, lines, style_config, [all …]
|
/external/yapf/yapftests/ |
D | yapf_test.py | 43 unformatted_code, style_config='chromium') 95 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') 99 filepath, style_config='chromium') 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') 214 filepath, style_config='pep8', lines=[(1, 2)]) 217 filepath, style_config='pep8', lines=[(3, 3)]) 267 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8') [all …]
|
/external/yapf/yapf/yapflib/ |
D | style.py | 462 def CreateStyleFromConfig(style_config): argument 484 if style_config is None: 492 if isinstance(style_config, dict): 493 config = _CreateConfigParserFromConfigDict(style_config) 494 elif isinstance(style_config, py3compat.basestring): 495 style_factory = _STYLE_NAME_TO_FACTORY.get(style_config.lower()) 498 if style_config.startswith('{'): 500 config = _CreateConfigParserFromConfigString(style_config) 503 config = _CreateConfigParserFromConfigFile(style_config)
|
D | yapf_api.py | 56 style_config=None, argument 87 style_config=style_config, 106 style_config=None, argument 124 style.SetGlobalStyle(style.CreateStyleFromConfig(style_config))
|
/external/yapf/ |
D | README.rst | 245 A ``style_config`` argument: Either a style name or a path to a file that contains 251 >>> FormatCode("def g():\n return True", style_config='pep8')
|