-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathdo_format_docstrings.toml
More file actions
1170 lines (898 loc) · 33.8 KB
/
do_format_docstrings.toml
File metadata and controls
1170 lines (898 loc) · 33.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[one_line]
source='''"""
Hello.
"""'''
expected='''"""Hello."""'''
[summary_end_quote]
source='''"""
"Hello"
"""'''
expected='''""""Hello"."""'''
[bad_indentation]
source='''"""Hello.
This should be indented but it is not. The
next line should be indented too. And
this too.
"""'''
expected='''"""Hello.
This should be indented but it is not.
The next line should be indented too.
And this too.
"""'''
[too_much_indentation]
source='''"""Hello.
This should be dedented.
1. This too.
2. And this.
3. And this.
"""'''
expected='''"""Hello.
This should be dedented.
1. This too.
2. And this.
3. And this.
"""'''
[trailing_whitespace]
source='''"""Hello.
This should be not have trailing whitespace. The
next line should not have trailing whitespace either.
"""'''
expected='''"""Hello.
This should be not have trailing whitespace. The
next line should not have trailing whitespace
either.
"""'''
[empty_docstring]
source='''""""""'''
expected='''""""""'''
[no_summary_period]
source='''"""
Hello
"""'''
expected='''"""Hello."""'''
[single_quotes]
source="""'''
Hello.
'''"""
expected='''"""Hello."""'''
[single_quotes_multiline]
source="""'''
Return x factorial.
This uses math.factorial.
'''"""
expected='''"""Return x factorial.
This uses math.factorial.
"""'''
[skip_underlined_summary]
source='''"""
Foo bar
-------
This is more.
"""'''
expected='''"""
Foo bar
-------
This is more.
"""'''
[no_blank]
source='''"""
Hello.
Description.
"""'''
expected='''"""Hello.
Description.
"""'''
[presummary_newline]
source='''"""
Hello.
Description.
"""'''
expected='''"""
Hello.
Description.
"""'''
[summary_multiline]
source='''"""This one-line docstring will be multi-line"""'''
expected='''"""
This one-line docstring will be multi-line.
"""'''
[presummary_space]
source='''"""This one-line docstring will have a leading space."""'''
expected='''""" This one-line docstring will have a leading space."""'''
# Examples to test when passing --black to docformatter.
[quote_no_space_black]
source='''""" This one-line docstring will not have a leading space."""'''
expected='''"""This one-line docstring will not have a leading space."""'''
[quote_space_black]
source='''""""This" quote starting one-line docstring will have a leading space."""'''
expected='''""" "This" quote starting one-line docstring will have a leading space."""'''
[quote_space_multiline_black]
source='''""""This" quote starting one-line docstring will have a leading space.
This long description will be wrapped at 88 characters because we passed the --black option and 88 characters is the default wrap length.
"""'''
expected='''""" "This" quote starting one-line docstring will have a leading space.
This long description will be wrapped at 88 characters because we
passed the --black option and 88 characters is the default wrap
length.
"""'''
# Examples to test with Epytext style docstrings.
[epytext]
source='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text,
and bulleted lists alone. See http://www.docformatter.com/.
@param text: the text argument.
@param indentation: the super long description for the indentation argument that will require docformatter to wrap this line.
@param wrap_length: the wrap_length argument
@param force_wrap: the force_warp argument.
@return: really long description text wrapped at n characters and a very long description of the return value so we can wrap this line abcd efgh ijkl mnop qrst uvwx yz.
"""'''
expected='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text, and
bulleted lists alone. See
http://www.docformatter.com/.
@param text: the text argument.
@param indentation: the super long description for the indentation argument that
will require docformatter to wrap this line.
@param wrap_length: the wrap_length argument
@param force_wrap: the force_warp argument.
@return: really long description text wrapped at n characters and a very long
description of the return value so we can wrap this line abcd efgh ijkl mnop
qrst uvwx yz.
"""'''
[epytext_numpy]
source='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text,
and bulleted lists alone. See http://www.docformatter.com/.
@param text: the text argument.
@param indentation: the super long description for the indentation argument that will require docformatter to wrap this line.
@param wrap_length: the wrap_length argument
@param force_wrap: the force_warp argument.
@return: really long description text wrapped at n characters and a very long description of the return value so we can wrap this line abcd efgh ijkl mnop qrst uvwx yz.
"""'''
expected='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text, and
bulleted lists alone. See
http://www.docformatter.com/.
@param text: the text argument.
@param indentation: the super long description for the indentation argument that will require docformatter to wrap this line.
@param wrap_length: the wrap_length argument
@param force_wrap: the force_warp argument.
@return: really long description text wrapped at n characters and a very long description of the return value so we can wrap this line abcd efgh ijkl mnop qrst uvwx yz.
"""'''
# Examples to test with Sphinx style docstrings.
[sphinx]
source='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text, and bulleted lists alone. See http://www.docformatter.com/.
:param str text: the text argument.
:param str indentation: the super long description for the indentation argument that will require docformatter to wrap this line.
:param int wrap_length: the wrap_length argument
:param bool force_wrap: the force_warp argument.
:return: really long description text wrapped at n characters and a very long description of the return value so we can wrap this line abcd efgh ijkl mnop qrst uvwx yz.
:rtype: str
"""'''
expected='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text, and
bulleted lists alone. See
http://www.docformatter.com/.
:param str text: the text argument.
:param str indentation: the super long description for the indentation argument that
will require docformatter to wrap this line.
:param int wrap_length: the wrap_length argument
:param bool force_wrap: the force_warp argument.
:return: really long description text wrapped at n characters and a very long
description of the return value so we can wrap this line abcd efgh ijkl mnop
qrst uvwx yz.
:rtype: str
"""'''
[sphinx_numpy]
source='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text, and bulleted lists alone. See http://www.docformatter.com/.
:param str text: the text argument.
:param str indentation: the super long description for the indentation argument that will require docformatter to wrap this line.
:param int wrap_length: the wrap_length argument
:param bool force_wrap: the force_warp argument.
:return: really long description text wrapped at n characters and a very long description of the return value so we can wrap this line abcd efgh ijkl mnop qrst uvwx yz.
:rtype: str
"""'''
expected='''"""Return line-wrapped description text.
We only wrap simple descriptions. We leave doctests, multi-paragraph text, and
bulleted lists alone. See
http://www.docformatter.com/.
:param str text: the text argument.
:param str indentation: the super long description for the indentation argument that will require docformatter to wrap this line.
:param int wrap_length: the wrap_length argument
:param bool force_wrap: the force_warp argument.
:return: really long description text wrapped at n characters and a very long description of the return value so we can wrap this line abcd efgh ijkl mnop qrst uvwx yz.
:rtype: str
"""'''
# Examples to test when formatting lists.
[numbered_list]
source='''"""Hello.
1. This should be indented but it is not. The
next line should be indented too. But
this is okay.
"""'''
expected='''"""Hello.
1. This should be indented but it is not. The
next line should be indented too. But
this is okay.
"""'''
[parameter_dash]
source='''"""Hello.
foo - This is a foo. This is a foo. This is a foo. This is a foo. This is.
bar - This is a bar. This is a bar. This is a bar. This is a bar. This is.
"""'''
expected='''"""Hello.
foo - This is a foo. This is a foo. This is a foo. This is a foo. This is.
bar - This is a bar. This is a bar. This is a bar. This is a bar. This is.
"""'''
[parameter_colon]
source='''"""Hello.
foo: This is a foo. This is a foo. This is a foo. This is a foo. This is.
bar: This is a bar. This is a bar. This is a bar. This is a bar. This is.
"""'''
expected='''"""Hello.
foo: This is a foo. This is a foo. This is a foo. This is a foo. This is.
bar: This is a bar. This is a bar. This is a bar. This is a bar. This is.
"""'''
[many_short_columns]
source='''"""
one
two
three
four
five
six
seven
eight
nine
ten
eleven
"""'''
expected='''"""
one
two
three
four
five
six
seven
eight
nine
ten
eleven
"""'''
# Examples to test when formatter URLs.
[inline]
source='''"""This is a docstring with a link.
Here is an elaborate description containing a link.
`Area Under the Receiver Operating Characteristic Curve (ROC AUC)
<https://en.wikipedia.org/wiki/Receiver_operating_characteristic#Further_interpretations>`_.
"""'''
expected='''"""This is a docstring with a link.
Here is an elaborate description containing a link. `Area Under the
Receiver Operating Characteristic Curve (ROC AUC)
<https://en.wikipedia.org/wiki/Receiver_operating_characteristic#Further_interpretations>`_.
"""'''
[inline_short]
source='''"""This is yanf with a short link.
See `the link <https://www.link.com>`_ for more details.
"""'''
expected='''"""This is yanf with a short link.
See `the link <https://www.link.com>`_ for more details.
"""'''
[inline_long]
source='''"""Helpful docstring.
A larger description that starts here. https://github.com/apache/kafka/blob/2.5/clients/src/main/java/org/apache/kafka/common/requests/DescribeConfigsResponse.java
A larger description that ends here.
"""'''
expected='''"""Helpful docstring.
A larger description that starts here.
https://github.com/apache/kafka/blob/2.5/clients/src/main/java/org/apache/kafka/common/requests/DescribeConfigsResponse.java
A larger description that ends here.
"""'''
[only_link]
source='''"""
`Source of this snippet
<https://www.freecodecamp.org/news/how-to-flatten-a-dictionary-in-python-in-4-different-ways/>`_.
"""'''
expected='''"""
`Source of this snippet
<https://www.freecodecamp.org/news/how-to-flatten-a-dictionary-in-python-in-4-different-ways/>`_.
"""'''
# Examples to test when wrapping.
[weird_punctuation]
source='''"""Creates and returns four was awakens to was created tracked
ammonites was the fifty, arithmetical four was pyrotechnic to
pyrotechnic physicists. `four' falsified x falsified ammonites
to awakens to. `created' to ancestor was four to x dynamo to was
four ancestor to physicists().
"""'''
expected='''"""Creates and returns four was awakens to was created tracked ammonites
was the fifty, arithmetical four was pyrotechnic to pyrotechnic physicists.
`four' falsified x falsified ammonites to awakens to. `created' to
ancestor was four to x dynamo to was four ancestor to physicists().
"""'''
[description_wrap]
source='''"""Hello.
This should be indented but it is not. The
next line should be indented too. But
this is okay.
"""'''
expected='''"""Hello.
This should be indented but it is not. The next line should be
indented too. But this is okay.
"""'''
[ignore_doctest]
source='''"""Hello.
>>> 4
4
"""'''
expected='''"""Hello.
>>> 4
4
"""'''
[ignore_summary_doctest]
source='''"""
>>> 4
4
"""'''
expected='''"""
>>> 4
4
"""'''
[same_indentation_doctest]
source='''"""Foo bar bing bang.
>>> tests = DocTestFinder().find(_TestClass)
>>> runner = DocTestRunner(verbose=False)
>>> tests.sort(key = lambda test: test.name)
"""'''
expected='''"""Foo bar bing bang.
>>> tests = DocTestFinder().find(_TestClass)
>>> runner = DocTestRunner(verbose=False)
>>> tests.sort(key = lambda test: test.name)
"""'''
[force_wrap]
source='''"""
num_iterations is the number of updates - instead of a better definition of convergence.
"""'''
expected='''"""num_iterations is the number of updates -
instead of a better definition of
convergence."""'''
[summary_wrap_tab]
source=''' """Some summary x x x x."""'''
expected='''"""Some summary x x x
x."""'''
[one_line_wrap_newline]
source='''"""This one-line docstring will be multi-line because it's quite long."""'''
expected='''"""This one-line docstring will be multi-line because it's quite
long.
"""'''
[one_line_no_wrap]
source='''"""This one-line docstring will not be wrapped and quotes will be in-line."""'''
expected='''"""This one-line docstring will not be wrapped and quotes will be in-line."""'''
# Add examples from docformatter issues on GitHub.
[issue_75]
source='''"""This is another docstring with `a link`_.
.. a link: http://www.reliqual.com/wiki/how_to_use_ramstk/verification_and_validation_module/index.html.
"""'''
expected='''"""This is another docstring with `a link`_.
.. a link: http://www.reliqual.com/wiki/how_to_use_ramstk/verification_and_validation_module/index.html.
"""'''
[issue_75_2]
source='''"""This is another docstring with a link.
See http://www.reliqual.com/wiki/how_to_use_ramstk/verification_and_validation_module/index.html for additional information.
"""'''
expected='''"""This is another docstring with a link.
See
http://www.reliqual.com/wiki/how_to_use_ramstk/verification_and_validation_module/index.html
for additional information.
"""'''
[issue_75_3]
source='''"""This is yanf with a short link.
See http://www.reliaqual.com for examples.
"""'''
expected='''"""This is yanf with a short link.
See http://www.reliaqual.com for examples.
"""'''
[issue_127]
source='''"""My awesome function.
This line is quite long. In fact is it longer than one hundred and twenty characters so it should be wrapped but it is not.
It doesn't wrap because of this line and the blank line in between! Delete them and it will wrap.
"""'''
expected='''"""My awesome function.
This line is quite long. In fact is it longer than one hundred and twenty characters so it should be wrapped but it
is not.
It doesn't wrap because of this line and the blank line in between! Delete them and it will wrap.
"""'''
[issue_140]
source='''"""This is a docstring with a link that causes a wrap.
See `the link <https://www.link.com/a/long/link/that/causes/line/break>`_ for more details.
"""'''
expected='''"""This is a docstring with a link that causes a wrap.
See
`the link <https://www.link.com/a/long/link/that/causes/line/break>`_
for more details.
"""'''
[issue_140_2]
source='''"""Helpful docstring.
A larger description that starts here.
https://github.com/apache/kafka/blob/2.5/clients/src/main/java/org/apache/kafka/common/requests/DescribeConfigsResponse.java
A larger description that ends here.
"""'''
expected='''"""Helpful docstring.
A larger description that starts here.
https://github.com/apache/kafka/blob/2.5/clients/src/main/java/org/apache/kafka/common/requests/DescribeConfigsResponse.java
A larger description that ends here.
"""'''
[issue_140_3]
source='''"""Do something.
See https://www.postgresql.org/docs/current/static/role-removal.html
"""'''
expected='''"""Do something.
See
https://www.postgresql.org/docs/current/static/role-removal.html
"""'''
[issue_145]
source='''"""<Short decription>
.. _linspace API: https://numpy.org/doc/stable/reference/generated/numpy.linspace.html
.. _arange API: https://numpy.org/doc/stable/reference/generated/numpy.arange.html
.. _logspace API: https://numpy.org/doc/stable/reference/generated/numpy.logspace.html
"""'''
expected='''"""<Short decription>
.. _linspace API: https://numpy.org/doc/stable/reference/generated/numpy.linspace.html
.. _arange API: https://numpy.org/doc/stable/reference/generated/numpy.arange.html
.. _logspace API: https://numpy.org/doc/stable/reference/generated/numpy.logspace.html
"""'''
[issue_150]
source='''"""
Translates incoming json to a processable Entity.
Stackoverflow reference: <https://stackoverflow.com/questions/69617489/can-i-get-incoming-extra-fields-from-pydantic>
"""'''
expected='''"""Translates incoming json to a processable Entity.
Stackoverflow reference: <https://stackoverflow.com/questions/69617489/can-i-get-incoming-extra-fields-from-pydantic>
"""'''
[issue_157]
source='''""".. code-block:: shell-session
► apm --version
apm 2.6.2
npm 6.14.13
node 12.14.1 x64
atom 1.58.0
python 2.7.16
git 2.33.0
"""'''
expected='''""".. code-block:: shell-session
► apm --version
apm 2.6.2
npm 6.14.13
node 12.14.1 x64
atom 1.58.0
python 2.7.16
git 2.33.0
"""'''
[issue_157_url]
source='''"""Get the Python type of a Click parameter.
See the list of `custom types provided by Click
<https://click.palletsprojects.com/en/8.1.x/api/?highlight=intrange#types>`_.
"""'''
expected='''"""Get the Python type of a Click parameter.
See the list of
`custom types provided by Click <https://click.palletsprojects.com/en/8.1.x/api/?highlight=intrange#types>`_.
"""'''
[issue_157_2]
source='''"""Fetch parameters values from configuration file and merge them with the
defaults.
User configuration is `merged to the context default_map as Click does
<https://click.palletsprojects.com/en/8.1.x/commands/#context-defaults>`_.
This allow user's config to only overrides defaults. Values sets from direct
command line parameters, environment variables or interactive prompts, takes
precedence over any values from the config file.
"""'''
expected='''"""Fetch parameters values from configuration file and merge them with the
defaults.
User configuration is
`merged to the context default_map as Click does <https://click.palletsprojects.com/en/8.1.x/commands/#context-defaults>`_.
This allow user's config to only overrides defaults. Values sets from direct
command line parameters, environment variables or interactive prompts, takes
precedence over any values from the config file.
"""'''
[issue_157_3]
source='''"""Introspects current CLI and list its parameters and metadata.
.. important::
Click doesn't keep a list of all parsed arguments and their origin.
So we need to emulate here what's happening during CLI invokation.
But can't even to that because the raw, pre-parsed arguments are
not available anywhere.
"""'''
expected='''"""Introspects current CLI and list its parameters and metadata.
.. important::
Click doesn't keep a list of all parsed arguments and their origin.
So we need to emulate here what's happening during CLI invokation.
But can't even to that because the raw, pre-parsed arguments are
not available anywhere.
"""'''
[issue_157_4]
source='''"""Search on local file system or remote URL files matching the provided pattern.
``pattern`` is considered as an URL only if it is parseable as such
and starts with ``http://`` or ``https://``.
.. important::
This is a straight `copy of the functools.cache implementation
<https://github.com/python/cpython/blob/55a26de6ba938962dc23f2495723cf0f4f3ab7c6/Lib/functools.py#L647-L653>`_,
which is only `available in the standard library starting with Python v3.9
<https://docs.python.org/3/library/functools.html?highlight=caching#functools.cache>`.
"""'''
expected='''"""Search on local file system or remote URL files matching the provided
pattern.
``pattern`` is considered as an URL only if it is parseable as such
and starts with ``http://`` or ``https://``.
.. important::
This is a straight `copy of the functools.cache implementation
<https://github.com/python/cpython/blob/55a26de6ba938962dc23f2495723cf0f4f3ab7c6/Lib/functools.py#L647-L653>`_,
which is only `available in the standard library starting with Python v3.9
<https://docs.python.org/3/library/functools.html?highlight=caching#functools.cache>`.
"""'''
[issue_157_5]
source='''"""Locate and call the ``mpm`` CLI.
The output must supports both `Xbar dialect
<https://github.com/matryer/xbar-plugins/blob/main/CONTRIBUTING.md#plugin-api>`_
and `SwiftBar dialect <https://github.com/swiftbar/SwiftBar#plugin-api>`_.
"""'''
expected='''"""Locate and call the ``mpm`` CLI.
The output must supports both
`Xbar dialect <https://github.com/matryer/xbar-plugins/blob/main/CONTRIBUTING.md#plugin-api>`_
and `SwiftBar dialect <https://github.com/swiftbar/SwiftBar#plugin-api>`_.
"""'''
[issue_157_6]
source='''"""Install one or more packages.
Installation will proceed first with packages unambiguously tied to a manager. You can have an
influence on that with more precise package specifiers (like purl) and/or tighter selection of managers.
For other untied packages, mpm will try to find the best manager to install it with. Their installation
will be attempted with each manager, in the order they were selected. If we have the certainty, by the way
of a search operation, that this package is not available from this manager, we'll skip the installation
and try the next available manager.
"""'''
expected='''"""Install one or more packages.
Installation will proceed first with packages unambiguously tied to a manager. You
can have an influence on that with more precise package specifiers (like purl)
and/or tighter selection of managers.
For other untied packages, mpm will try to find the best manager to install it with.
Their installation will be attempted with each manager, in the order they were
selected. If we have the certainty, by the way of a search operation, that this
package is not available from this manager, we'll skip the installation and try the
next available manager.
"""'''
[issue_157_11]
source='''"""Fetch parameters values from configuration file and merge them with the defaults.
User configuration is `merged to the context default_map as Click does
<https://click.palletsprojects.com/en/8.1.x/commands/#context-defaults>`_.
This allow user's config to only overrides defaults. Values sets from direct
command line parameters, environment variables or interactive prompts, takes
precedence over any values from the config file.
"""'''
expected='''"""Fetch parameters values from configuration file and merge them with the
defaults.
User configuration is
`merged to the context default_map as Click does <https://click.palletsprojects.com/en/8.1.x/commands/#context-defaults>`_.
This allow user's config to only overrides defaults. Values sets from direct
command line parameters, environment variables or interactive prompts, takes
precedence over any values from the config file.
"""'''
[issue_159]
source='''"""Blah blah.
This will normally be used with https://aaaaaaaa.bbb.ccccccccc.com/xxxxx/xxx_xxxxxxxxxxx to generate the xxx
"""'''
expected='''"""Blah blah.
This will normally be used with
https://aaaaaaaa.bbb.ccccccccc.com/xxxxx/xxx_xxxxxxxxxxx
to generate the xxx
"""'''
[issue_180]
source='''"""Django settings for webapp project.
Generated by 'django-admin startproject' using Django 4.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""'''
expected='''"""Django settings for webapp project.
Generated by 'django-admin startproject' using Django 4.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""'''
[issue_189]
source='''"""This method doesn't do anything.
https://example.com/this-is-just-a-long-url/designed-to-trigger/the-wrapping-of-the-description
"""'''
expected='''"""This method doesn't do anything.
https://example.com/this-is-just-a-long-url/designed-to-trigger/the-wrapping-of-the-description
"""'''
[issue_193]
source='''"""
eBay kinda suss
"""'''
expected='''"""eBay kinda suss."""'''
[issue_199]
source='''"""
This is a short desription.
Here is a link to the github issue
https://github.com/PyCQA/docformatter/issues/199
This is a long description.
"""'''
expected='''"""This is a short desription.
Here is a link to the github issue
https://github.com/PyCQA/docformatter/issues/199
This is a long description.
"""'''
[issue_210]
source='''"""Short description.
This graphics format generates terminal escape codes that transfer
PNG data to a TTY using the `kitty graphics protocol`__.
__ https://sw.kovidgoyal.net/kitty/graphics-protocol/
"""'''
expected='''"""Short description.
This graphics format generates terminal escape codes that transfer
PNG data to a TTY using the `kitty graphics protocol`__.
__ https://sw.kovidgoyal.net/kitty/graphics-protocol/
"""'''
[issue_215]
source='''"""Create or return existing HTTP session.
:return: Requests :class:`~requests.Session` object
"""'''
expected='''"""Create or return existing HTTP session.
:return: Requests :class:`~requests.Session` object
"""'''
[issue_217_222]
source='''"""Base for all Commands.
:param logger: Logger for console and logfile.
:param console: Facilitates console interaction and input solicitation.
:param tools: Cache of tools populated by Commands as they are required.
:param apps: Dictionary of project's Apps keyed by app name.
:param base_path: Base directory for Briefcase project.
:param data_path: Base directory for Briefcase tools, support packages, etc.
:param is_clone: Flag that Command was triggered by the user's requested Command;
for instance, RunCommand can invoke UpdateCommand and/or BuildCommand.
"""'''
expected='''"""Base for all Commands.
:param logger: Logger for console and logfile.
:param console: Facilitates console interaction and input solicitation.
:param tools: Cache of tools populated by Commands as they are required.
:param apps: Dictionary of project's Apps keyed by app name.
:param base_path: Base directory for Briefcase project.
:param data_path: Base directory for Briefcase tools, support packages, etc.
:param is_clone: Flag that Command was triggered by the user's requested Command;
for instance, RunCommand can invoke UpdateCommand and/or BuildCommand.
"""'''
[issue_218]
source='''"""Construct a candidate project URL from the bundle and app name.
It's not a perfect guess, but it's better than having "https://example.com".
:param bundle: The bundle identifier.
:param app_name: The app name.
:returns: The candidate project URL
"""'''
expected='''"""Construct a candidate project URL from the bundle and app name.
It's not a perfect guess, but it's better than having
"https://example.com".
:param bundle: The bundle identifier.
:param app_name: The app name.
:returns: The candidate project URL
"""'''
[issue_224]
source='''"""
Add trackers to a torrent.
:raises NotFound404Error:
:param torrent_hash: hash for torrent
:param urls: tracker URLs to add to torrent
:return: None
"""'''
expected='''"""Add trackers to a torrent.
:raises NotFound404Error:
:param torrent_hash: hash for torrent
:param urls: tracker URLs to add to torrent
:return: None
"""'''
[issue_228]
source='''"""Configure application requirements by writing a requirements.txt file.
:param app: The app configuration
:param requires: The full list of requirements
:param requirements_path: The full path to a requirements.txt file that
will be written.
"""'''
expected='''"""Configure application requirements by writing a requirements.txt file.
:param app: The app configuration
:param requires: The full list of requirements
:param requirements_path: The full path to a requirements.txt file that will be
written.
"""'''
[issue_229]
source='''"""CC.
:meth:`!X`
"""'''
expected='''"""CC.
:meth:`!X`
"""'''
[issue_229_2]
source='''"""CC.
:math: `-`
"""'''
expected='''"""CC.
:math: `-`
"""'''
[issue_230]
source='''"""CC.
:math:`-`
:param d: blabla
:param list(str) l: more blabla.
"""'''
expected= '''"""CC.
:math:`-`
:param d: blabla
:param list(str) l: more blabla.
"""'''
[issue_232]
source='''def function:
"""
:param x: X
:param y: Y
"""'''
expected='''def function:
"""
:param x: X
:param y: Y
"""'''
[issue_234]
source=''' """CC.
:math:`f(0) = 1`. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX
"""'''
expected='''"""CC.
:math:`f(0) = 1`. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX
"""'''
[issue_235]
source='''"""CC.
C.
C,
:math:`[0, 1]`.
"""'''
expected='''"""CC.
C.
C, :math:`[0, 1]`.
"""'''
[issue_239]
source='''"""CC.
C.
C
c :math:`[0, 1]`.