docconvert icon indicating copy to clipboard operation
docconvert copied to clipboard

# noqa is shifted to next line after block comment

Open janadaub opened this issue 1 year ago • 0 comments

Hi Cameron,

thanks for your nice reformatting tool :)

Using it in my repository lead to the following behaviour:

Before running docconvert:

def abc():
    """Text.

    Text text text text.
    """  # noqa: 501

After running docconvert:

def abc():
    """Text.

    Text text text text.
    """  
    # noqa: 501

As # noqa was shifted to the next line, flake8 is not relating it to the block comment any more.

My expection would be that it stays at the same line.

Thank you in advance for checking the issue!

janadaub avatar Jan 13 '25 15:01 janadaub