PyCQA / docformatter

Formats docstrings to follow PEP 257
https://pypi.python.org/pypi/docformatter
MIT License
524 stars 61 forks source link

#noqa no longer works in 1.7.1 #226

Closed tuukkamustonen closed 1 year ago

tuukkamustonen commented 1 year ago

This used to work in 1.7.0 and earlier:

class Foobar:
    # noqa
    """some gibb
    erish
    """

1.7.1 formats it despite # noqa.

By the way couldn't find any mention of noqa support in the docs? Should it be advertized?

weibullguy commented 1 year ago

docformatter has never recognized the # noqa decorator. I ran your snippet through v1.7.1, v1.7.0, and v1.6.0 and, as it should, docformatter reformatted the docstring. Please see #144 for a request to provide the ability to ignore part or all of a docstring.

tuukkamustonen commented 1 year ago

That's interesting, because the behavior differs in our codebase. Well, don't have time to dive deeper here, so will just stick with older version until #144 😎

Thanks for the project, appreciate your efforts!