-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy path.editorconfig
More file actions
90 lines (74 loc) · 2.91 KB
/
Copy path.editorconfig
File metadata and controls
90 lines (74 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# https://editorconfig.org
# https://github.com/editorconfig/editorconfig/wiki/editorconfig-properties
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
[*.{md,rst,txt}]
indent_style = space
indent_size = 4
[*.{html,css,js,json,sh,yml,yaml}]
indent_size = 2
[*.bat]
indent_style = tab
end_of_line = crlf
[LICENSE]
insert_final_newline = false
[Makefile]
indent_style = tab
indent_size = unset
# Ignore binary or generated files
[*.{png,jpg,gif,ico,woff,woff2,ttf,eot,svg,pdf}]
charset = unset
end_of_line = unset
indent_style = unset
indent_size = unset
trim_trailing_whitespace = unset
insert_final_newline = unset
max_line_length = unset
[{*.py,*.pyw}]
indent_style = space
indent_size = 4
tab_width = 4
ij_visual_guides = 120
ij_continuation_indent_size = 4
# Don’t vertically align multi-line items (Black doesn’t)
ij_python_align_collections_and_comprehensions = false
ij_python_align_multiline_imports = false
ij_python_align_multiline_parameters = false
ij_python_align_multiline_parameters_in_calls = false
# Place params/closing parens like Black
ij_python_call_parameters_new_line_after_left_paren = true
ij_python_call_parameters_right_paren_on_new_line = true
ij_python_method_parameters_new_line_after_left_paren = true
ij_python_method_parameters_right_paren_on_new_line = true
ij_python_hang_closing_brackets = false
# Trailing-comma behavior (to match Black/Ruff “magic comma”)
ij_python_use_trailing_comma_in_arguments_list = false
ij_python_use_trailing_comma_in_collections = true
ij_python_use_trailing_comma_in_parameter_list = true
# Keep multi-line when a trailing comma exists (matches Ruff)
ij_python_keep_line_breaks = true
ij_python_call_parameters_wrap = off
ij_python_method_parameters_wrap = off
# Imports: mirror Ruff/isort “combine-as-imports” + “force-wrap-aliases” + “order-by-type”
ij_python_optimize_imports_join_from_imports_with_same_source = true # combine from-imports
ij_python_from_import_parentheses_force_if_multiline = true # keep parenthesized layout
ij_python_from_import_new_line_after_left_parenthesis = true # one name per line (after '(')
ij_python_from_import_new_line_before_right_parenthesis = true # ')' on its own line
ij_python_optimize_imports_sort_by_type_first = true # order-by-type
ij_python_optimize_imports_sort_imports = true
ij_python_optimize_imports_sort_names_in_from_imports = true
# Let Black/Ruff control wrapping and line breaks
ij_python_wrap_long_lines = false
ij_python_keep_line_breaks = true
# spaces around equality operators (==, !=)
ij_python_spaces_around_equality_operators = true
ij_python_spaces_around_assignment_operators = true
# Keep “continuation indent” simple (Black style)
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 = false