]> git.madduck.net Git - etc/vim.git/blob - tests/data/preview/cantfit.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Bump furo from 2022.9.29 to 2022.12.7 in /docs (#3433)
[etc/vim.git] / tests / data / preview / cantfit.py
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 # long arguments
23 normal_name = normal_function_name(
24     "but with super long string arguments that on their own exceed the line limit so there's no way it can ever fit",
25     "eggs with spam and eggs and spam with eggs with spam and eggs and spam with eggs with spam and eggs and spam with eggs",
26     this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it=0,
27 )
28 string_variable_name = (
29     "a string that is waaaaaaaayyyyyyyy too long, even in parens, there's nothing you can do"  # noqa
30 )
31 for key in """
32     hostname
33     port
34     username
35 """.split():
36     if key in self.connect_kwargs:
37         raise ValueError(err.format(key))
38 concatenated_strings = "some strings that are " "concatenated implicitly, so if you put them on separate " "lines it will fit"
39 del concatenated_strings, string_variable_name, normal_function_name, normal_name, need_more_to_make_the_line_long_enough
40
41
42 # output
43
44
45 # long variable name
46 this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = (
47     0
48 )
49 this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = (
50     1  # with a comment
51 )
52 this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = [
53     1,
54     2,
55     3,
56 ]
57 this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = (
58     function()
59 )
60 this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function(
61     arg1, arg2, arg3
62 )
63 this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = function(
64     [1, 2, 3], arg1, [1, 2, 3], arg2, [1, 2, 3], arg3
65 )
66 # long function name
67 normal_name = (
68     but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying()
69 )
70 normal_name = (
71     but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying(
72         arg1, arg2, arg3
73     )
74 )
75 normal_name = (
76     but_the_function_name_is_now_ridiculously_long_and_it_is_still_super_annoying(
77         [1, 2, 3], arg1, [1, 2, 3], arg2, [1, 2, 3], arg3
78     )
79 )
80 # long arguments
81 normal_name = normal_function_name(
82     (
83         "but with super long string arguments that on their own exceed the line limit"
84         " so there's no way it can ever fit"
85     ),
86     (
87         "eggs with spam and eggs and spam with eggs with spam and eggs and spam with"
88         " eggs with spam and eggs and spam with eggs"
89     ),
90     this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it=0,
91 )
92 string_variable_name = "a string that is waaaaaaaayyyyyyyy too long, even in parens, there's nothing you can do"  # noqa
93 for key in """
94     hostname
95     port
96     username
97 """.split():
98     if key in self.connect_kwargs:
99         raise ValueError(err.format(key))
100 concatenated_strings = (
101     "some strings that are "
102     "concatenated implicitly, so if you put them on separate "
103     "lines it will fit"
104 )
105 del (
106     concatenated_strings,
107     string_variable_name,
108     normal_function_name,
109     normal_name,
110     need_more_to_make_the_line_long_enough,
111 )