| 1 |
# long variable name |
| 2 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = 0 |
| 3 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = 1 # with a comment |
| 4 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = [ |
| 5 |
1, 2, 3 |
| 6 |
] |
| 7 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function() |
| 8 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function( |
| 9 |
arg1, arg2, arg3 |
| 10 |
) |
| 11 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function( |
| 12 |
[1, 2, 3], arg1, [1, 2, 3], arg2, [1, 2, 3], arg3 |
| 13 |
) |
| 14 |
# long function name |
| 15 |
normal_name = but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying() |
| 16 |
normal_name = but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying( |
| 17 |
arg1, arg2, arg3 |
| 18 |
) |
| 19 |
normal_name = but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying( |
| 20 |
[1, 2, 3], arg1, [1, 2, 3], arg2, [1, 2, 3], arg3 |
| 21 |
) |
| 22 |
string_variable_name = ( |
| 23 |
"a string that is waaaaaaaayyyyyyyy too long, even in parens, there's nothing you can do" # noqa |
| 24 |
) |
| 25 |
for key in """ |
| 26 |
hostname |
| 27 |
port |
| 28 |
username |
| 29 |
""".split(): |
| 30 |
if key in self.connect_kwargs: |
| 31 |
raise ValueError(err.format(key)) |
| 32 |
concatenated_strings = "some strings that are " "concatenated implicitly, so if you put them on separate " "lines it will fit" |
| 33 |
del concatenated_strings, string_variable_name, normal_function_name, normal_name, need_more_to_make_the_line_long_enough |
| 34 |
del ([], name_1, name_2), [(), [], name_4, name_3], name_1[[name_2 for name_1 in name_0]] |
| 35 |
del (), |
| 36 |
|
| 37 |
# output |
| 38 |
|
| 39 |
|
| 40 |
# long variable name |
| 41 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = ( |
| 42 |
0 |
| 43 |
) |
| 44 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = ( |
| 45 |
1 # with a comment |
| 46 |
) |
| 47 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = [ |
| 48 |
1, |
| 49 |
2, |
| 50 |
3, |
| 51 |
] |
| 52 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = ( |
| 53 |
function() |
| 54 |
) |
| 55 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function( |
| 56 |
arg1, arg2, arg3 |
| 57 |
) |
| 58 |
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function( |
| 59 |
[1, 2, 3], arg1, [1, 2, 3], arg2, [1, 2, 3], arg3 |
| 60 |
) |
| 61 |
# long function name |
| 62 |
normal_name = ( |
| 63 |
but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying() |
| 64 |
) |
| 65 |
normal_name = ( |
| 66 |
but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying( |
| 67 |
arg1, arg2, arg3 |
| 68 |
) |
| 69 |
) |
| 70 |
normal_name = ( |
| 71 |
but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying( |
| 72 |
[1, 2, 3], arg1, [1, 2, 3], arg2, [1, 2, 3], arg3 |
| 73 |
) |
| 74 |
) |
| 75 |
string_variable_name = "a string that is waaaaaaaayyyyyyyy too long, even in parens, there's nothing you can do" # noqa |
| 76 |
for key in """ |
| 77 |
hostname |
| 78 |
port |
| 79 |
username |
| 80 |
""".split(): |
| 81 |
if key in self.connect_kwargs: |
| 82 |
raise ValueError(err.format(key)) |
| 83 |
concatenated_strings = ( |
| 84 |
"some strings that are " |
| 85 |
"concatenated implicitly, so if you put them on separate " |
| 86 |
"lines it will fit" |
| 87 |
) |
| 88 |
del ( |
| 89 |
concatenated_strings, |
| 90 |
string_variable_name, |
| 91 |
normal_function_name, |
| 92 |
normal_name, |
| 93 |
need_more_to_make_the_line_long_enough, |
| 94 |
) |
| 95 |
del ( |
| 96 |
([], name_1, name_2), |
| 97 |
[(), [], name_4, name_3], |
| 98 |
name_1[[name_2 for name_1 in name_0]], |
| 99 |
) |
| 100 |
del ((),) |