You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The undocumented-public-function rule currently has no autofix.
Writing documentation for functions can be made more effective by providing the documentation template automatically.
PyCharm allows to insert a "documentation string stub":
deffunc1(arg1: str, arg2: int) ->int:
raiseValueError("Value not valid")
Proposed by PyCharm (depends on the docstring style configuration):
This could make sense, but only with Applicabilty::DisplayOnly so that the fix needs to be applied manually because this is more an editor refactor than a "proper fix".
I'm not sure how the CLI or LSP handle display only fixes
The
undocumented-public-function
rule currently has no autofix.Writing documentation for functions can be made more effective by providing the documentation template automatically.
PyCharm allows to insert a "documentation string stub":
Proposed by PyCharm (depends on the docstring style configuration):
Would you accept a similar (unsafe) fix in
ruff
?Ideally, the rule considers arguments, return values and exceptions.
The text was updated successfully, but these errors were encountered: