Add newline after module docstrings in preview style (#8283)
Change ```python """Test docstring""" a = 1 ``` to ```python """Test docstring""" a = 1 ``` in preview style, but don't touch the docstring otherwise. Do we want to ask black to also format the content of module level docstrings? Seems inconsistent to me that we change function and class docstring indentation/contents but not module docstrings. Fixes https://github.com/astral-sh/ruff/issues/7995
This commit is contained in:
@@ -166,6 +166,7 @@ preview = Enabled
|
||||
"""
|
||||
Black's `Preview.module_docstring_newlines`
|
||||
"""
|
||||
|
||||
first_stmt_after_module_level_docstring = 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user