]> git.madduck.net Git - etc/vim.git/blob - tests/data/comments7.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:

Add docstrings to fmt checking functions, add to docs
[etc/vim.git] / tests / data / comments7.py
1 from .config import (
2     Any,
3     Bool,
4     ConfigType,
5     ConfigTypeAttributes,
6     Int,
7     Path,
8     #  String,
9     #  resolve_to_config_type,
10     #  DEFAULT_TYPE_ATTRIBUTES,
11 )
12
13
14 from .config import (
15     Any,
16     Bool,
17     ConfigType,
18     ConfigTypeAttributes,
19     Int,
20     no_comma_here_yet
21     #  and some comments,
22     #  resolve_to_config_type,
23     #  DEFAULT_TYPE_ATTRIBUTES,
24 )
25
26
27 result = 1  # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
28
29 result = (
30     1  # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
31 )
32
33 result = (
34     "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  # aaa
35 )
36
37 result = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  # aaa
38
39
40 def func():
41     c = call(
42         0.0123,
43         0.0456,
44         0.0789,
45         0.0123,
46         0.0789,
47         a[-1],  # type: ignore
48     )
49
50     # The type: ignore exception only applies to line length, not
51     # other types of formatting.
52     c = call(
53         "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa",  # type: ignore
54         "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa"
55     )
56
57
58 # output
59
60 from .config import (
61     Any,
62     Bool,
63     ConfigType,
64     ConfigTypeAttributes,
65     Int,
66     Path,
67     #  String,
68     #  resolve_to_config_type,
69     #  DEFAULT_TYPE_ATTRIBUTES,
70 )
71
72
73 from .config import (
74     Any,
75     Bool,
76     ConfigType,
77     ConfigTypeAttributes,
78     Int,
79     no_comma_here_yet,
80     #  and some comments,
81     #  resolve_to_config_type,
82     #  DEFAULT_TYPE_ATTRIBUTES,
83 )
84
85
86 result = 1  # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
87
88 result = 1  # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
89
90 result = (  # aaa
91     "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
92 )
93
94 result = (  # aaa
95     "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
96 )
97
98
99 def func():
100     c = call(0.0123, 0.0456, 0.0789, 0.0123, 0.0789, a[-1],)  # type: ignore
101
102     # The type: ignore exception only applies to line length, not
103     # other types of formatting.
104     c = call(
105         "aaaaaaaa",
106         "aaaaaaaa",
107         "aaaaaaaa",
108         "aaaaaaaa",
109         "aaaaaaaa",
110         "aaaaaaaa",  # type: ignore
111         "aaaaaaaa",
112         "aaaaaaaa",
113         "aaaaaaaa",
114         "aaaaaaaa",
115         "aaaaaaaa",
116         "aaaaaaaa",
117     )