420c1e046c
As part of adding the hacking file, this patch adds some files taken from nova project that will help with the coding standards validation. Tox now uses run_pep8 for the pep8 test Change-Id: I0784390a0b13c9694e358563d43e5442592a785e
16 lines
377 B
Python
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())
|