summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorRussell Bryant <russell@ovn.org>2015-12-21 20:24:34 -0500
committerRussell Bryant <russell@ovn.org>2016-01-05 18:13:46 -0500
commit115d8719dbfda638b0f26593e1df5bb354aaacd4 (patch)
tree36f5736a33bfe5ba2e2cbd5b8140ef99a302a71c /m4
parent1e289cffd00fa6bff06ec47d320bd0be5e8209ce (diff)
downloadopenvswitch-115d8719dbfda638b0f26593e1df5bb354aaacd4.tar.gz
python: Run flake8 at build time.
If flake8 is installed, run it at build time. Similar to most Makefile targets, run it once and then only run again if the files change. flake8 is set to ignore all error and warning types that currently occur. Future patches will remove items from the ignore list as they are resolved. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/openvswitch.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index 0cfaae69c..6d4e5da9c 100644
--- a/m4/openvswitch.m4
+++ b/m4/openvswitch.m4
@@ -353,6 +353,18 @@ else:
AM_CONDITIONAL([HAVE_PYTHON], [test "$HAVE_PYTHON" = yes])])
dnl Checks for dot.
+AC_DEFUN([OVS_CHECK_FLAKE8],
+ [AC_CACHE_CHECK(
+ [for flake8],
+ [ovs_cv_flake8],
+ [if flake8 --version >/dev/null 2>&1; then
+ ovs_cv_flake8=yes
+ else
+ ovs_cv_flake8=no
+ fi])
+ AM_CONDITIONAL([HAVE_FLAKE8], [test "$ovs_cv_flake8" = yes])])
+
+dnl Checks for dot.
AC_DEFUN([OVS_CHECK_DOT],
[AC_CACHE_CHECK(
[for dot],