def _autopep8_options_for_style(style): return { None: [], "blink": autopep8.parse_args( ["--aggressive", "--max-line-length", "132", "--ignore=E309", "--indent-size", "4", ""] ), "chromium": autopep8.parse_args( ["--aggressive", "--max-line-length", "80", "--ignore=E309", "--indent-size", "2", ""] ), }.get(style)
def _autopep8_options_for_style(style): return { None: [], 'blink': autopep8.parse_args(['--aggressive', '--max-line-length', '132', '--indent-size', '4', '']), 'chromium': autopep8.parse_args(['--aggressive', '--max-line-length', '80', '--indent-size', '2', '']), }.get(style)
def _autopep8_options_for_style(style): return { None: [], 'blink': autopep8.parse_args([ '--aggressive', '--max-line-length', '132', '--indent-size', '4', '' ]), 'chromium': autopep8.parse_args([ '--aggressive', '--max-line-length', '80', '--indent-size', '2', '' ]), }.get(style)
def _autopep8_options_for_style(style): if style == "chromium": max_line_length = 80 indent_size = 2 else: max_line_length = 132 indent_size = 4 return autopep8.parse_args( ["--aggressive", "--max-line-length", str(max_line_length), "--indent-size", str(indent_size), ""] )
def _autopep8_options_for_style(style): if style == 'chromium': max_line_length = 80 indent_size = 2 else: max_line_length = 132 indent_size = 4 return autopep8.parse_args([ '--aggressive', '--max-line-length', str(max_line_length), '--indent-size', str(indent_size), '' ])