heat-cfntools/tools/flakes.py
Steve Baker 54acd090a8 Add tox, pep8, pyflakes, testr support
Also fix the python to comply. This has to be done as a single
change otherwise we'll never bootstrap gating.

Change-Id: I4a21d57e0341802a1652428dee16c60abb30251d
2013-03-07 12:28:29 +13:00

16 lines
377 B
Python

"""
wrapper for pyflakes to ignore gettext based warning:
"undefined name '_'"
Synced in from openstack-common
"""
import sys
import pyflakes.checker
from pyflakes.scripts import pyflakes
if __name__ == "__main__":
orig_builtins = set(pyflakes.checker._MAGIC_GLOBALS)
pyflakes.checker._MAGIC_GLOBALS = orig_builtins | set(['_'])
sys.exit(pyflakes.main())