Disable inspection for certain patterns?

I see that you can disable inspection for a file, class, or function. But why not for a certain pattern, project-wide? I'm mostly thinking of things that are added to the Python global spaces through black magic. For example, it would be useful to always ignore the undefined reference to _ (underscore) in code:

    print _('Hello, World! The underscore is quietly being added to globals elsewhere.')

Please sign in to leave a comment.