ishpreet ishpreet - 1 year ago 100
Python Question

Use of noqa in comments

What does noqa mean in Python?

I am going through a python project and found that few lines contain a specific comment noqa. Can anyone tell what does noqa mean? Is it specific to Python only?

Answer Source

It indicates that the linter (a program that automatically checks code quality) should not check this line. Maybe that line has something that "looks bad" to the linter but the developer understands and intends to be there for some reason.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download