Hello,
I've noticed PYI010's autofix replaces function stubs' docstrings with ellipsis regardless of if there is one already or not.
Minimal code snippet
def function():
"""doc"""
...
Details
The current Ruff settings
- A ruff.toml file on the project root (linted file is in a typings subfolder)
select = [
# ...
"PYI", # flake8-pyi
# ...
]
include = ["*.py", "*.pyi", "*.ipynb", "pyproject.toml", "rust.toml"]
ignore = ["E501", "N999"]
target-version = "py38"
src = ["Phonebook_analyzer"]
- Added a
# "PYI010" in unfixable after the first command; no sure if it's relevant.
Thanks for the linter, btw; it's really awesome!