tidypy icon indicating copy to clipboard operation
tidypy copied to clipboard

# noqa: at file scope

Open Zomega opened this issue 6 years ago • 1 comments

pylint has an option to disable specific checks for an entire file py if there's a # pylint: disable at the top of a file.

It would be handy to extend tidypy's noqa syntax to work this way too.

I'll have a go at setting this up unless there's an objection.

Zomega avatar Oct 16 '18 19:10 Zomega

If you're willing to take the time, then by all means... :)

I didn't take the noqa implementation that far originally because you can specify exclusions in your pyproject.toml, so I thought it'd be more consistent to do "entire file" exclusions in one place, rather than having some Python files with a noqa comment, and then other Python (or any non-Python) files getting excluded by a configured regex.

jayclassless avatar Oct 18 '18 18:10 jayclassless