mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 22:54:28 -05:00
Disable top-level docstring formatting for notebooks (#9957)
This commit is contained in:
8
crates/ruff_python_formatter/resources/test/fixtures/ruff/notebook_docstring.options.json
vendored
Normal file
8
crates/ruff_python_formatter/resources/test/fixtures/ruff/notebook_docstring.options.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"source_type": "Ipynb"
|
||||
},
|
||||
{
|
||||
"source_type": "Python"
|
||||
}
|
||||
]
|
||||
6
crates/ruff_python_formatter/resources/test/fixtures/ruff/notebook_docstring.py
vendored
Normal file
6
crates/ruff_python_formatter/resources/test/fixtures/ruff/notebook_docstring.py
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"""
|
||||
This looks like a docstring but is not in a notebook because notebooks can't be imported as a module.
|
||||
Ruff should leave it as is
|
||||
""";
|
||||
|
||||
"another normal string"
|
||||
Reference in New Issue
Block a user