From 3d968d36122b64b374feb1be0fd131f6691995f0 Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 14 Oct 2019 14:52:33 +0000 Subject: add yapf to make pretty --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e8bd98da1..579939b09 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,7 +39,11 @@ doc_DATA = COPYING README ACLOCAL_AMFLAGS = -I m4 +# TODO: better nesting. if HAVE_UNCRUSTIFY_BINARY pretty: find $(top_srcdir) -type f -name '*.c' -or -name '*.h' -print0 | xargs -0 uncrustify -c $(top_srcdir)/contrib/uncrustify.cfg --replace --no-backup 2>&1 || true +if HAVE_YAPF_BINARY + find $(top_srcdir) -type f -name '*.py' -or -name '*.py.in' -print0 | xargs -0 $(YAPF_BINARY) -i 2>&1 || true +endif endif -- cgit v1.2.3