summaryrefslogtreecommitdiffstats
path: root/tools/flakes.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-05-17 12:54:12 -0700
committerMonty Taylor <mordred@inaugust.com>2013-05-17 12:54:12 -0700
commita333be8fe4ec0abc49e85d0c689b8ffba2a473eb (patch)
treeea6a8037626de002ce60e8e5a82f1053bdb50a40 /tools/flakes.py
parent186c49409c841bd2bba50ea8629ec214a7fb9627 (diff)
downloadnova-a333be8fe4ec0abc49e85d0c689b8ffba2a473eb.tar.gz
nova-a333be8fe4ec0abc49e85d0c689b8ffba2a473eb.tar.xz
nova-a333be8fe4ec0abc49e85d0c689b8ffba2a473eb.zip
Switch to flake8+hacking.
Remove a bunch of local custom scripts. Replace with configurable external tools. Use local hacking checks for nova specifics. Change-Id: I75a01375ba0ec36d2ff05abc47abe0a3f225eda5
Diffstat (limited to 'tools/flakes.py')
-rw-r--r--tools/flakes.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/flakes.py b/tools/flakes.py
deleted file mode 100644
index 191bd6eab..000000000
--- a/tools/flakes.py
+++ /dev/null
@@ -1,24 +0,0 @@
-"""
- wrapper for pyflakes to ignore gettext based warning:
- "undefined name '_'"
-
- Synced in from openstack-common
-"""
-
-__all__ = ['main']
-
-import __builtin__ as builtins
-import sys
-
-import pyflakes.api
-from pyflakes import checker
-
-
-def main():
- checker.Checker.builtIns = (set(dir(builtins)) |
- set(['_']) |
- set(checker._MAGIC_GLOBALS))
- sys.exit(pyflakes.api.main())
-
-if __name__ == "__main__":
- main()