Skip to content

Commit d99ea0d

Browse files
BethanyGkotp
andcommitted
Update .style.yapf
Co-authored-by: Victor Goff <[email protected]>
1 parent 5ac6ee2 commit d99ea0d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.style.yapf

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,23 @@ each_dict_entry_on_separate_line=False
131131
# }
132132
force_multiline_dict=False
133133

134-
# The regex for an i18n comment. The presence of this comment stops
134+
# The regex (_regular expression_) for an i18n (_internationalization_) comment. The presence of this comment stops
135135
# reformatting of that line, because the comments are required to be
136136
# next to the string they translate.
137137
i18n_comment=#\..*
138138

139-
# The i18n function call names. The presence of this function stops
140-
>>>>>>> Created yapf style based on google style.
141-
# reformattting on that line, because the string it has cannot be moved
142-
# away from the i18n comment.
139+
140+
# The i18n (internationalization) function calls names. The presence of this function stops
141+
# re-formatting on that line, because the string it has cannot be moved
142+
# away from the internationalization comment.
143143
i18n_function_call=N_, _
144144

145145
# Indent blank lines.
146146
indent_blank_lines=False
147147

148148
# Put closing brackets on a separate line, indented, if the bracketed
149-
# expression can't fit in a single line. Applies to all kinds of brackets,
150-
# including function definitions and calls. For example:
151-
>>>>>>> Created yapf style based on google style.
149+
# expression can't fit in a single line. This applies to all kinds of
150+
# brackets, including function definitions and calls. For example:
152151
#
153152
# config = {
154153
# 'key1': 'value1',
@@ -162,6 +161,9 @@ indent_blank_lines=False
162161
# start_ts=now()-timedelta(days=3),
163162
# end_ts=now(),
164163
# ) # <--- this bracket is indented and on a separate line
164+
#
165+
# Exercism strongly diverges from this Google-recommended pattern, and favors
166+
# closing brackets on the same line as the end of the expression.
165167
indent_closing_brackets=False
166168

167169
# Indent the dictionary value if it cannot fit on the same line as the

0 commit comments

Comments
 (0)