Skip to content

Commit

Permalink
Move module docstring test to preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Feb 1, 2024
1 parent 2cbafd2 commit 0e8d1b2
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 1,388 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,5 @@
"docstring_code_line_width": "dynamic",
"indent_style": "space",
"indent_width": 4
},
{
"docstring_code": "enabled",
"preview": "enabled",
"indent_style": "space",
"indent_width": 4
}
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
"""
Black's `Preview.module_docstring_newlines`
A code black to format
.. code-block:: python
from bokeh.events import ButtonClick
from bokeh.models import Button
button = Button()
def callback(event ):
print('Python:Click')
button.on_event(ButtonClick, callback)
"""
first_stmt_after_module_level_docstring = 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'single'
'single' # this string is treated as a docstring
"double"
r'r single'
r"r double"
Expand Down

0 comments on commit 0e8d1b2

Please sign in to comment.