Guest User

Untitled

a guest
Jun 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. [style]
  2. # Align closing bracket with visual indentation.
  3. align_closing_bracket_with_visual_indent=True
  4.  
  5. # Allow dictionary keys to exist on multiple lines. For example:
  6. #
  7. # x = {
  8. # ('this is the first element of a tuple',
  9. # 'this is the second element of a tuple'):
  10. # value,
  11. # }
  12. allow_multiline_dictionary_keys=False
  13.  
  14. # Allow lambdas to be formatted on more than one line.
  15. allow_multiline_lambdas=False
  16.  
  17. # Allow splits before the dictionary value.
  18. allow_split_before_dict_value=True
  19.  
  20. # Number of blank lines surrounding top-level function and class
  21. # definitions.
  22. blank_lines_around_top_level_definition=2
  23.  
  24. # Insert a blank line before a class-level docstring.
  25. blank_line_before_class_docstring=False
  26.  
  27. # Insert a blank line before a module docstring.
  28. blank_line_before_module_docstring=False
  29.  
  30. # Insert a blank line before a 'def' or 'class' immediately nested
  31. # within another 'def' or 'class'. For example:
  32. #
  33. # class Foo:
  34. # # <------ this blank line
  35. # def method():
  36. # ...
  37. blank_line_before_nested_class_or_def=False
  38.  
  39. # Do not split consecutive brackets. Only relevant when
  40. # dedent_closing_brackets is set. For example:
  41. #
  42. # call_func_that_takes_a_dict(
  43. # {
  44. # 'key1': 'value1',
  45. # 'key2': 'value2',
  46. # }
  47. # )
  48. #
  49. # would reformat to:
  50. #
  51. # call_func_that_takes_a_dict({
  52. # 'key1': 'value1',
  53. # 'key2': 'value2',
  54. # })
  55. coalesce_brackets=False
  56.  
  57. # The column limit.
  58. column_limit=99
  59.  
  60. # The style for continuation alignment. Possible values are:
  61. #
  62. # - SPACE: Use spaces for continuation alignment. This is default behavior.
  63. # - FIXED: Use fixed number (CONTINUATION_INDENT_WIDTH) of columns
  64. # (ie: CONTINUATION_INDENT_WIDTH/INDENT_WIDTH tabs) for continuation
  65. # alignment.
  66. # - LESS: Slightly left if cannot vertically align continuation lines with
  67. # indent characters.
  68. # - VALIGN-RIGHT: Vertically align continuation lines with indent
  69. # characters. Slightly right (one more indent character) if cannot
  70. # vertically align continuation lines with indent characters.
  71. #
  72. # For options FIXED, and VALIGN-RIGHT are only available when USE_TABS is
  73. # enabled.
  74. continuation_align_style=SPACE
  75.  
  76. # Indent width used for line continuations.
  77. continuation_indent_width=4
  78.  
  79. # Put closing brackets on a separate line, dedented, if the bracketed
  80. # expression can't fit in a single line. Applies to all kinds of brackets,
  81. # including function definitions and calls. For example:
  82. #
  83. # config = {
  84. # 'key1': 'value1',
  85. # 'key2': 'value2',
  86. # } # <--- this bracket is dedented and on a separate line
  87. #
  88. # time_series = self.remote_client.query_entity_counters(
  89. # entity='dev3246.region1',
  90. # key='dns.query_latency_tcp',
  91. # transform=Transformation.AVERAGE(window=timedelta(seconds=60)),
  92. # start_ts=now()-timedelta(days=3),
  93. # end_ts=now(),
  94. # ) # <--- this bracket is dedented and on a separate line
  95. dedent_closing_brackets=False
  96.  
  97. # Place each dictionary entry onto its own line.
  98. each_dict_entry_on_separate_line=True
  99.  
  100. # The regex for an i18n comment. The presence of this comment stops
  101. # reformatting of that line, because the comments are required to be
  102. # next to the string they translate.
  103. i18n_comment=
  104.  
  105. # The i18n function call names. The presence of this function stops
  106. # reformattting on that line, because the string it has cannot be moved
  107. # away from the i18n comment.
  108. i18n_function_call=
  109.  
  110. # Indent the dictionary value if it cannot fit on the same line as the
  111. # dictionary key. For example:
  112. #
  113. # config = {
  114. # 'key1':
  115. # 'value1',
  116. # 'key2': value1 +
  117. # value2,
  118. # }
  119. indent_dictionary_value=False
  120.  
  121. # The number of columns to use for indentation.
  122. indent_width=4
  123.  
  124. # Join short lines into one line. E.g., single line 'if' statements.
  125. join_multiple_lines=True
  126.  
  127. # Do not include spaces around selected binary operators. For example:
  128. #
  129. # 1 + 2 * 3 - 4 / 5
  130. #
  131. # will be formatted as follows when configured with a value "*,/":
  132. #
  133. # 1 + 2*3 - 4/5
  134. #
  135. no_spaces_around_selected_binary_operators=set([])
  136.  
  137. # Use spaces around default or named assigns.
  138. spaces_around_default_or_named_assign=False
  139.  
  140. # Use spaces around the power operator.
  141. spaces_around_power_operator=False
  142.  
  143. # The number of spaces required before a trailing comment.
  144. spaces_before_comment=2
  145.  
  146. # Insert a space between the ending comma and closing bracket of a list,
  147. # etc.
  148. space_between_ending_comma_and_closing_bracket=True
  149.  
  150. # Split before arguments
  151. split_all_comma_separated_values=False
  152.  
  153. # Split before arguments if the argument list is terminated by a
  154. # comma.
  155. split_arguments_when_comma_terminated=False
  156.  
  157. # Set to True to prefer splitting before '&', '|' or '^' rather than
  158. # after.
  159. split_before_bitwise_operator=True
  160.  
  161. # Split before the closing bracket if a list or dict literal doesn't fit on
  162. # a single line.
  163. split_before_closing_bracket=True
  164.  
  165. # Split before a dictionary or set generator (comp_for). For example, note
  166. # the split before the 'for':
  167. #
  168. # foo = {
  169. # variable: 'Hello world, have a nice day!'
  170. # for variable in bar if variable != 42
  171. # }
  172. split_before_dict_set_generator=True
  173.  
  174. # Split after the opening paren which surrounds an expression if it doesn't
  175. # fit on a single line.
  176. split_before_expression_after_opening_paren=False
  177.  
  178. # If an argument / parameter list is going to be split, then split before
  179. # the first argument.
  180. split_before_first_argument=False
  181.  
  182. # Set to True to prefer splitting before 'and' or 'or' rather than
  183. # after.
  184. split_before_logical_operator=True
  185.  
  186. # Split named assignments onto individual lines.
  187. split_before_named_assigns=True
  188.  
  189. # Set to True to split list comprehensions and generators that have
  190. # non-trivial expressions and multiple clauses before each of these
  191. # clauses. For example:
  192. #
  193. # result = [
  194. # a_long_var + 100 for a_long_var in xrange(1000)
  195. # if a_long_var % 10]
  196. #
  197. # would reformat to something like:
  198. #
  199. # result = [
  200. # a_long_var + 100
  201. # for a_long_var in xrange(1000)
  202. # if a_long_var % 10]
  203. split_complex_comprehension=False
  204.  
  205. # The penalty for splitting right after the opening bracket.
  206. split_penalty_after_opening_bracket=30
  207.  
  208. # The penalty for splitting the line after a unary operator.
  209. split_penalty_after_unary_operator=10000
  210.  
  211. # The penalty for splitting right before an if expression.
  212. split_penalty_before_if_expr=0
  213.  
  214. # The penalty of splitting the line around the '&', '|', and '^'
  215. # operators.
  216. split_penalty_bitwise_operator=300
  217.  
  218. # The penalty for splitting a list comprehension or generator
  219. # expression.
  220. split_penalty_comprehension=80
  221.  
  222. # The penalty for characters over the column limit.
  223. split_penalty_excess_character=4500
  224.  
  225. # The penalty incurred by adding a line split to the unwrapped line. The
  226. # more line splits added the higher the penalty.
  227. split_penalty_for_added_line_split=30
  228.  
  229. # The penalty of splitting a list of "import as" names. For example:
  230. #
  231. # from a_very_long_or_indented_module_name_yada_yad import (long_argument_1,
  232. # long_argument_2,
  233. # long_argument_3)
  234. #
  235. # would reformat to something like:
  236. #
  237. # from a_very_long_or_indented_module_name_yada_yad import (
  238. # long_argument_1, long_argument_2, long_argument_3)
  239. split_penalty_import_names=0
  240.  
  241. # The penalty of splitting the line around the 'and' and 'or'
  242. # operators.
  243. split_penalty_logical_operator=300
  244.  
  245. # Use the Tab character for indentation.
  246. use_tabs=False
Add Comment
Please, Sign In to add comment