-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 删除大量换行, 增加多参数换行, 提高可读性 * 使用 f-string 代替格式化字符串 * 清理冗余正则表达式
- Loading branch information
Showing
72 changed files
with
1,277 additions
and
2,867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = false | ||
max_line_length = 170 | ||
tab_width = 4 | ||
ij_continuation_indent_size = 8 | ||
ij_formatter_off_tag = @formatter:off | ||
ij_formatter_on_tag = @formatter:on | ||
ij_formatter_tags_enabled = true | ||
ij_smart_tabs = false | ||
ij_visual_guides = | ||
ij_wrap_on_typing = false | ||
|
||
[.editorconfig] | ||
ij_editorconfig_align_group_field_declarations = false | ||
ij_editorconfig_space_after_colon = false | ||
ij_editorconfig_space_after_comma = true | ||
ij_editorconfig_space_before_colon = false | ||
ij_editorconfig_space_before_comma = false | ||
ij_editorconfig_spaces_around_assignment_operators = true | ||
|
||
|
||
[{*.bash,*.sh,*.zsh}] | ||
indent_size = 2 | ||
tab_width = 2 | ||
ij_shell_binary_ops_start_line = false | ||
ij_shell_keep_column_alignment_padding = false | ||
ij_shell_minify_program = false | ||
ij_shell_redirect_followed_by_space = false | ||
ij_shell_switch_cases_indented = false | ||
ij_shell_use_unix_line_separator = true | ||
|
||
|
||
[{*.py,*.pyc,*.pyw}] | ||
ij_python_align_collections_and_comprehensions = true | ||
ij_python_align_multiline_imports = true | ||
ij_python_align_multiline_parameters = true | ||
ij_python_align_multiline_parameters_in_calls = true | ||
ij_python_blank_line_at_file_end = true | ||
ij_python_blank_lines_after_imports = 1 | ||
ij_python_blank_lines_after_local_imports = 0 | ||
ij_python_blank_lines_around_class = 1 | ||
ij_python_blank_lines_around_method = 1 | ||
ij_python_blank_lines_around_top_level_classes_functions = 2 | ||
ij_python_blank_lines_before_first_method = 0 | ||
ij_python_call_parameters_new_line_after_left_paren = false | ||
ij_python_call_parameters_right_paren_on_new_line = false | ||
ij_python_call_parameters_wrap = on_every_item | ||
ij_python_dict_alignment = 0 | ||
ij_python_dict_new_line_after_left_brace = false | ||
ij_python_dict_new_line_before_right_brace = true | ||
ij_python_dict_wrapping = 5 | ||
ij_python_from_import_new_line_after_left_parenthesis = false | ||
ij_python_from_import_new_line_before_right_parenthesis = false | ||
ij_python_from_import_parentheses_force_if_multiline = false | ||
ij_python_from_import_trailing_comma_if_multiline = false | ||
ij_python_from_import_wrapping = 1 | ||
ij_python_hang_closing_brackets = false | ||
ij_python_keep_blank_lines_in_code = 1 | ||
ij_python_keep_blank_lines_in_declarations = 1 | ||
ij_python_keep_indents_on_empty_lines = false | ||
ij_python_keep_line_breaks = true | ||
ij_python_method_parameters_new_line_after_left_paren = false | ||
ij_python_method_parameters_right_paren_on_new_line = false | ||
ij_python_method_parameters_wrap = on_every_item | ||
ij_python_new_line_after_colon = false | ||
ij_python_new_line_after_colon_multi_clause = true | ||
ij_python_optimize_imports_always_split_from_imports = false | ||
ij_python_optimize_imports_case_insensitive_order = false | ||
ij_python_optimize_imports_join_from_imports_with_same_source = true | ||
ij_python_optimize_imports_sort_by_type_first = true | ||
ij_python_optimize_imports_sort_imports = true | ||
ij_python_optimize_imports_sort_names_in_from_imports = true | ||
ij_python_space_after_comma = true | ||
ij_python_space_after_number_sign = true | ||
ij_python_space_after_py_colon = true | ||
ij_python_space_before_backslash = true | ||
ij_python_space_before_comma = false | ||
ij_python_space_before_for_semicolon = false | ||
ij_python_space_before_lbracket = false | ||
ij_python_space_before_method_call_parentheses = false | ||
ij_python_space_before_method_parentheses = false | ||
ij_python_space_before_number_sign = true | ||
ij_python_space_before_py_colon = false | ||
ij_python_space_within_empty_method_call_parentheses = false | ||
ij_python_space_within_empty_method_parentheses = false | ||
ij_python_spaces_around_additive_operators = true | ||
ij_python_spaces_around_assignment_operators = true | ||
ij_python_spaces_around_bitwise_operators = true | ||
ij_python_spaces_around_eq_in_keyword_argument = false | ||
ij_python_spaces_around_eq_in_named_parameter = false | ||
ij_python_spaces_around_equality_operators = true | ||
ij_python_spaces_around_multiplicative_operators = true | ||
ij_python_spaces_around_power_operator = true | ||
ij_python_spaces_around_relational_operators = true | ||
ij_python_spaces_around_shift_operators = true | ||
ij_python_spaces_within_braces = false | ||
ij_python_spaces_within_brackets = false | ||
ij_python_spaces_within_method_call_parentheses = false | ||
ij_python_spaces_within_method_parentheses = false | ||
ij_python_use_continuation_indent_for_arguments = false | ||
ij_python_use_continuation_indent_for_collection_and_comprehensions = false | ||
ij_python_use_continuation_indent_for_parameters = true | ||
ij_python_wrap_long_lines = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.