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

Merge commit '882d8795c6ff65c02f2657e596391748d1b6b7f5'
[etc/vim.git] / .vim / bundle / black / tests / data / cases / docstring_no_string_normalization.py
1 # flags: --skip-string-normalization
2 class ALonelyClass:
3     '''
4     A multiline class docstring.
5     '''
6     def AnEquallyLonelyMethod(self):
7         '''
8         A multiline method docstring'''
9         pass
10
11
12 def one_function():
13     '''This is a docstring with a single line of text.'''
14     pass
15
16
17 def shockingly_the_quotes_are_normalized():
18     '''This is a multiline docstring.
19     This is a multiline docstring.
20     This is a multiline docstring.
21     '''
22     pass
23
24
25 def foo():
26   """This is a docstring with             
27   some lines of text here
28   """
29   return
30
31
32 def baz():
33   '''"This" is a string with some
34   embedded "quotes"'''
35   return
36
37
38 def poit():
39   """
40   Lorem ipsum dolor sit amet.       
41
42   Consectetur adipiscing elit:
43    - sed do eiusmod tempor incididunt ut labore
44    - dolore magna aliqua
45      - enim ad minim veniam
46      - quis nostrud exercitation ullamco laboris nisi
47    - aliquip ex ea commodo consequat
48   """
49   pass
50
51
52 def under_indent():
53   """
54   These lines are indented in a way that does not
55 make sense.
56   """
57   pass
58
59
60 def over_indent():
61   """
62   This has a shallow indent
63     - But some lines are deeper
64     - And the closing quote is too deep
65     """
66   pass
67
68
69 def single_line():
70     """But with a newline after it!
71
72     """
73     pass
74
75
76 def this():
77     r"""
78     'hey ho'
79     """
80
81
82 def that():
83   """ "hey yah" """
84
85
86 def and_that():
87   """
88   "hey yah" """
89
90
91 def and_this():
92   ''' 
93   "hey yah"'''
94
95
96 def believe_it_or_not_this_is_in_the_py_stdlib(): ''' 
97 "hey yah"'''
98
99
100 def shockingly_the_quotes_are_normalized_v2():
101     '''
102     Docstring Docstring Docstring
103     '''
104     pass
105
106
107 def backslash_space():
108     '\ '
109
110
111 def multiline_backslash_1():
112   '''
113   hey\there\
114   \ '''
115
116
117 def multiline_backslash_2():
118   '''
119   hey there \ '''
120
121
122 def multiline_backslash_3():
123   '''
124   already escaped \\ '''
125
126 # output
127
128 class ALonelyClass:
129     '''
130     A multiline class docstring.
131     '''
132
133     def AnEquallyLonelyMethod(self):
134         '''
135         A multiline method docstring'''
136         pass
137
138
139 def one_function():
140     '''This is a docstring with a single line of text.'''
141     pass
142
143
144 def shockingly_the_quotes_are_normalized():
145     '''This is a multiline docstring.
146     This is a multiline docstring.
147     This is a multiline docstring.
148     '''
149     pass
150
151
152 def foo():
153     """This is a docstring with
154     some lines of text here
155     """
156     return
157
158
159 def baz():
160     '''"This" is a string with some
161     embedded "quotes"'''
162     return
163
164
165 def poit():
166     """
167     Lorem ipsum dolor sit amet.
168
169     Consectetur adipiscing elit:
170      - sed do eiusmod tempor incididunt ut labore
171      - dolore magna aliqua
172        - enim ad minim veniam
173        - quis nostrud exercitation ullamco laboris nisi
174      - aliquip ex ea commodo consequat
175     """
176     pass
177
178
179 def under_indent():
180     """
181       These lines are indented in a way that does not
182     make sense.
183     """
184     pass
185
186
187 def over_indent():
188     """
189     This has a shallow indent
190       - But some lines are deeper
191       - And the closing quote is too deep
192     """
193     pass
194
195
196 def single_line():
197     """But with a newline after it!"""
198     pass
199
200
201 def this():
202     r"""
203     'hey ho'
204     """
205
206
207 def that():
208     """ "hey yah" """
209
210
211 def and_that():
212     """
213     "hey yah" """
214
215
216 def and_this():
217     '''
218     "hey yah"'''
219
220
221 def believe_it_or_not_this_is_in_the_py_stdlib():
222     '''
223     "hey yah"'''
224
225
226 def shockingly_the_quotes_are_normalized_v2():
227     '''
228     Docstring Docstring Docstring
229     '''
230     pass
231
232
233 def backslash_space():
234     '\ '
235
236
237 def multiline_backslash_1():
238     '''
239   hey\there\
240   \ '''
241
242
243 def multiline_backslash_2():
244     '''
245     hey there \ '''
246
247
248 def multiline_backslash_3():
249     '''
250     already escaped \\'''