summaryrefslogtreecommitdiff
path: root/xenserver
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 /xenserver
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 'xenserver')
-rw-r--r--xenserver/automake.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/xenserver/automake.mk b/xenserver/automake.mk
index 816b1b543..1f75e3a94 100644
--- a/xenserver/automake.mk
+++ b/xenserver/automake.mk
@@ -26,6 +26,9 @@ EXTRA_DIST += \
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync \
xenserver/usr_share_openvswitch_scripts_sysconfig.template
+FLAKE8_PYFILES += \
+ xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync
+
$(srcdir)/xenserver/openvswitch-xen.spec: xenserver/openvswitch-xen.spec.in $(top_builddir)/config.status
$(AM_V_GEN)($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
< $(srcdir)/xenserver/$(@F).in > $(@F).tmp || exit 1; \