Disable QA for part of file

I tried to search around, but I couldn't find any answers for how to do this. Is there a way to disable QA for *part* of a file? Something like: # noqa: begin # noqa: end My specific use case is that some files contain ASCII diagrams, or other text that shouldn't wrap where my configuration is set. I can append every line with # noqa, but this is tedious and ugly. I can ignore the entire file, but it contains code that I would like to validate. Any suggestions? Is this a feature that could be added? Thanks, Jesse

For which tools would you want this feature? Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Thu, Mar 4, 2021, 16:38 Jesse Brennan via code-quality < code-quality@python.org> wrote:
I tried to search around, but I couldn't find any answers for how to do this.
Is there a way to disable QA for *part* of a file?
Something like: # noqa: begin # noqa: end
My specific use case is that some files contain ASCII diagrams, or other text that shouldn't wrap where my configuration is set. I can append every line with # noqa, but this is tedious and ugly. I can ignore the entire file, but it contains code that I would like to validate.
Any suggestions? Is this a feature that could be added?
Thanks, Jesse _______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-leave@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: graffatcolmingov@gmail.com
participants (2)
-
Ian Stapleton Cordasco
-
Jesse Brennan