Yeah - you put the pragma after a line to just disable it on that one line. See https://github.com/edx/edx-platform/blob/master/CONTRIBUTING.rst#pythonjavascript-styling