NilsJPWerner / autoDocstring

VSCode extension that generates docstrings for python files
MIT License
676 stars 163 forks source link

Seemingly unable to comply with Pydocstyle (D413) `blank-line-after-last-section` #284

Open sSasha-uwu opened 7 months ago

sSasha-uwu commented 7 months ago

I've tried editing the template in a number of different ways, but cannot for the life of me find a way to add an extra newline at the end of the docstring with this plugin. Pydocstyle (D413) recommends this, and I personally like the way that it looks.

Docstring that I'd like to create:

    """_summary_

    Parameters:
    ----------
    a : _type_
        _description_
    b : _type_
        _description_

    Returns:
    -------
    _type_
        _description_

    """    

Docstring that I can create:

    """_summary_

    Parameters
    ----------
    a : _type_
        _description_
    b : _type_
        _description_

    Returns
    -------
    _type_
        _description_
    """    

Not sure if there's something I'm missing or if it's just not possible.