1

在文档中没有可用属性列表,我在 gist.github 中找到了一个包含一些属性的文件,但我没有找到此规则的密钥。

我的问题示例:我有以下代码:

endpoints = [
    path('check_email/', check_email)
]

我希望这段代码将被格式化为:

endpoints = [
    path("check_email/", check_email),
]

我有setup.cfg一些设置的文件:

[yapf]
# custom
based_on_style = google
split_before_logical_operator = True
align_closing_bracket_with_visual_indent = True
allow_multiline_dictionary_keys = True
allow_multiline_lambdas = True
blank_line_before_nested_class_or_def = True
indent_dictionary_value = True
dedent_closing_brackets = True
no_spaces_around_selected_binary_operators = set()
split_before_expression_after_opening_paren = True
split_arguments_when_comma_terminated = True
split_complex_comprehension = True
4

0 回答 0