File: format_black.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 (75 lines) | stat: -rw-r--r-- 1,937 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
[quote_no_space]
instring='''"""   This one-line docstring will not have a leading space."""'''
outstring='''"""This one-line docstring will not have a leading space."""'''

[quote_space]
instring='''""""This" quote starting one-line docstring will have a leading space."""'''
outstring='''""" "This" quote starting one-line docstring will have a leading space."""'''

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

[strip_blank_lines]
instring='''
    class TestClass:

        """This is a class docstring."""

        class_attribute = 1

        def test_method_1(self):
            """This is a method docstring.

            With no blank line after it.
            """
            pass

        def test_method_2(self):

            """This is a method docstring.

            With a long description followed by multiple blank lines.
            """


            pass'''
outstring='''
    class TestClass:
        """This is a class docstring."""

        class_attribute = 1

        def test_method_1(self):
            """This is a method docstring.

            With no blank line after it.
            """
            pass

        def test_method_2(self):
            """This is a method docstring.

            With a long description followed by multiple blank lines.
            """
            pass'''

[issue_176]
instring='''class C:
    """Class.""" #noqa

    attr: int
    """Attr."""'''
outstring='''class C:
    """Class.""" #noqa

    attr: int
    """Attr."""'''