[pygobject] Add a pep8 check to the makefile



commit f83d95e6fff572bda659a48e309b4524dafa4e83
Author: Johan Dahlin <johan gnome org>
Date:   Thu Mar 22 11:14:03 2012 -0300

    Add a pep8 check to the makefile
    
    Also reorganize the pyflakes check, since target dependencies do not
    take the exit status of the shell command into account.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672627

 tests/Makefile.am |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e9f7e90..9ed6179 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -102,13 +102,12 @@ RUN_TESTS_ENV_VARS= \
 	XDG_DATA_DIRS=$$XDG_DATA_DIRS:/usr/share \
 	TESTS_BUILDDIR=$(builddir)
 
-check-local: check-pyflakes
 check-local: $(LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled
-	$(RUN_TESTS_ENV_VARS) $(DBUS_LAUNCH) $(EXEC_NAME) $(PYTHON) -Wd -Werror::PendingDeprecationWarning -Werror::DeprecationWarning $(srcdir)/runtests.py
-
-check-pyflakes:
-	@echo "  CHECK Pyflakes"
+	@echo "  CHECK  Pyflakes"
 	@pyflakes $(top_srcdir)
+	@echo "  CHECK  PEP8"
+	@pep8 --ignore=E501 --repeat --show-source $(top_srcdir)
+	$(RUN_TESTS_ENV_VARS) $(DBUS_LAUNCH) $(EXEC_NAME) $(PYTHON) -Wd -Werror::PendingDeprecationWarning -Werror::DeprecationWarning $(srcdir)/runtests.py
 
 check.gdb:
 	EXEC_NAME="gdb --args" $(MAKE) check



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]