ruff/crates/ruff_linter/resources/test/fixtures/pydocstyle/D202.py
Enoch Kan 5bc9d6d3aa
Rename rules currently not conforming to naming convention (#15102)
## 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.
2024-12-23 15:48:45 -06:00

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