From d41a933729ab26d1d7b9b4d67872fbb37ac19e3b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 1 Feb 2015 17:47:49 +0100 Subject: Makefile: fix pep8 and pylint --- Makefile.example | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.example b/Makefile.example index e1dfcd606..da9882e67 100644 --- a/Makefile.example +++ b/Makefile.example @@ -20,10 +20,12 @@ test: clean cd $(project); $(PYTHON) manage.py test pep8: - pep8.py --filename=*.py --ignore=W --exclude="manage.py,settings.py" --statistics --repeat . + pep8 --filename=*.py --ignore=W --exclude="manage.py,settings.py,migrations" --statistics --repeat . pylint: - pylint . --max-public-methods=50 --include-ids=y --ignored-classes=Item.Meta --method-rgx='[a-z_][a-z0-9_]{2,40}$$' + for DIR in $(apps); do \ + pylint "$(CURDIR)/$$DIR" --ignore=.git,migrations --max-public-methods=50 --ignored-classes=Item.Meta --method-rgx='[a-z_][a-z0-9_]{2,40}$$'; \ + done fresh_syncdb: cd $(project); $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null @@ -73,7 +75,6 @@ run: compilemessages: for DIR in $(apps); do \ - echo $(CURDIR)/$$DIR; \ cd $(CURDIR)/$$DIR; \ django-admin compilemessages; \ done -- cgit v1.2.3