Commits

Andriy Kornatskyy committed 3025284

Introduced make target qa; fixed issues reported.

Comments (0)

Files changed (2)

-.SILENT: clean env doctest-cover test doc release upload po
-.PHONY: clean env doctest-cover test doc release upload po
+.SILENT: clean env doctest-cover qa test doc release upload po
+.PHONY: clean env doctest-cover qa test doc release upload po
 
 VERSION=2.7
 PYPI=http://pypi.python.org/simple
 			upload; \
 	fi
 
+qa:
+	if [ "$$(echo $(VERSION) | sed 's/\.//')" -eq 27 ]; then \
+		flake8 --max-complexity 10 demos doc src setup.py && \
+		pep8 demos doc src setup.py ; \
+	fi
+
 test:
 	# The can be run for python < 3.0
 	if [ "$$(echo $(VERSION) | sed 's/\.//')" -lt 30 ]; then \
 try:
     from setuptools import setup
 except:
-    from distutils.core import setup
+    from distutils.core import setup  # noqa
 
 README = open(os.path.join(os.path.dirname(__file__), 'README')).read()
 
 ]
 
 try:
-    import uuid
-except:
+    import uuid  # noqa
+except ImportError:
     install_requires.append('uuid')
 
 setup(