File: format_wrap.toml

package info (click to toggle)
python-docformatter 1.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,156 kB
  • sloc: python: 6,180; makefile: 28; sh: 7
file content (133 lines) | stat: -rw-r--r-- 3,850 bytes parent folder | download | duplicates (2)
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
[unwrap]
instring='''"This

	is

a sentence."'''
outstring='''"This is a sentence."'''

[weird_punctuation]
instring='''"""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().
            """'''
outstring='''"""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]
instring='''"""Hello.

    This should be indented but it is not. The
    next line should be indented too. But
    this is okay.

    """'''
outstring='''"""Hello.

    This should be indented but it is not. The next line should be
    indented too. But this is okay.
    """'''

[ignore_doctest]
instring='''"""Hello.

    >>> 4
    4
    """'''
outstring='''"""Hello.

    >>> 4
    4
    """'''

[ignore_summary_doctest]
instring='''"""
    >>> 4
    4

    """'''
outstring='''"""
    >>> 4
    4

    """'''

[same_indentation_doctest]
instring='''"""Foo bar bing bang.

        >>> tests = DocTestFinder().find(_TestClass)
        >>> runner = DocTestRunner(verbose=False)
        >>> tests.sort(key = lambda test: test.name)

    """'''
outstring='''"""Foo bar bing bang.

        >>> tests = DocTestFinder().find(_TestClass)
        >>> runner = DocTestRunner(verbose=False)
        >>> tests.sort(key = lambda test: test.name)
    """'''

[force_wrap]
instring='''"""
num_iterations is the number of updates - instead of a better definition of convergence.
"""'''
outstring='''"""num_iterations is the number of updates -
    instead of a better definition of
    convergence."""'''

[summary_wrap_tab]
instring='''		"""Some summary x x x x."""'''
outstring='''"""Some summary x x x
		x."""'''

[one_line_wrap_newline]
instring='''"""This one-line docstring will be multi-line because it's quite long."""'''
outstring='''"""This one-line docstring will be multi-line because it's quite
    long.
    """'''

[one_line_no_wrap]
instring='''"""This one-line docstring will not be wrapped and quotes will be in-line."""'''
outstring='''"""This one-line docstring will not be wrapped and quotes will be in-line."""'''

[class_attribute_wrap]
instring='''class TestClass:
    """This is a class docstring."""

    test_int = 1
    """This is a very, very, very long docstring that should really be reformatted nicely by docformatter."""'''
outstring='''class TestClass:
    """This is a class docstring."""

    test_int = 1
    """This is a very, very, very long docstring that should really be
    reformatted nicely by docformatter."""'''

[issue_79]
instring='''def function2():
    """Hello yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet
    -v."""'''
outstring='''def function2():
    """Hello yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet
    -v."""'''

[issue_127]
instring='''"""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.
    """'''
outstring='''"""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.
    """'''