mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00

## Summary This pull request renames 19 rules which currently do not conform to Ruff's [naming convention](https://github.com/astral-sh/ruff/blob/main/CONTRIBUTING.md#rule-naming-convention). ## Description Fixes astral-sh/ruff#15009.
87 lines
1 KiB
Python
87 lines
1 KiB
Python
"""Test: blank-line-after-function special-cases around comment handling."""
|
|
|
|
# OK
|
|
def outer():
|
|
"""This is a docstring."""
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# OK
|
|
def outer():
|
|
"""This is a docstring."""
|
|
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# OK
|
|
def outer():
|
|
"""This is a docstring."""
|
|
# This is a comment.
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# OK
|
|
def outer():
|
|
"""This is a docstring."""
|
|
|
|
# This is a comment.
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# OK
|
|
def outer():
|
|
"""This is a docstring."""
|
|
|
|
# This is a comment.
|
|
# Followed by another comment.
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# D202
|
|
def outer():
|
|
"""This is a docstring."""
|
|
|
|
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# D202
|
|
def outer():
|
|
"""This is a docstring."""
|
|
|
|
|
|
# This is a comment.
|
|
def inner():
|
|
return
|
|
|
|
return inner
|
|
|
|
|
|
# D202
|
|
def outer():
|
|
"""This is a docstring."""
|
|
|
|
# This is a comment.
|
|
|
|
def inner():
|
|
return
|
|
|
|
return inner
|