summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-05-11 14:48:00 -0400
committerMonty Taylor <mordred@inaugust.com>2013-05-13 10:08:01 -0400
commita4fb55e80cfd4700626ddea449d7a8fb42c1d4c6 (patch)
treee15de53785ece5ab73a1be1cde7e5c6d2275b0ad /tools
parentd9f7c2142a5ad14648fa9c82bc957fc4c70d61a4 (diff)
downloadkeystone-a4fb55e80cfd4700626ddea449d7a8fb42c1d4c6.tar.gz
keystone-a4fb55e80cfd4700626ddea449d7a8fb42c1d4c6.tar.xz
keystone-a4fb55e80cfd4700626ddea449d7a8fb42c1d4c6.zip
Migrate to flake8.
Closes bug 1172444 Change-Id: I4831946d01f05c2a10264745a07b53fa48be44c8
Diffstat (limited to 'tools')
-rw-r--r--tools/flakes.py24
-rw-r--r--tools/test-requires8
2 files changed, 6 insertions, 26 deletions
diff --git a/tools/flakes.py b/tools/flakes.py
deleted file mode 100644
index 191bd6ea..00000000
--- 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()
diff --git a/tools/test-requires b/tools/test-requires
index 52a181b8..936eb90c 100644
--- a/tools/test-requires
+++ b/tools/test-requires
@@ -1,3 +1,9 @@
+# Install bounded pep8/pyflakes first, then let flake8 install
+pep8==1.4.5
+pyflakes==0.7.2
+flake8==2.0
+hacking>=0.5.3,<0.6
+
# Optional backend: SQL
pysqlite
@@ -14,8 +20,6 @@ nose # for test discovery and console feedback
nosexcover
openstack.nose_plugin
nosehtmloutput
-pylint # static code analysis
-pep8==1.3.3 # checks for PEP8 code style compliance
Sphinx>=1.1.2 # required to build documentation
unittest2 # backport of unittest lib in python 2.7
webtest # test wsgi apps without starting an http server