summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-02-01 17:47:49 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-02-01 17:47:49 +0100
commitd41a933729ab26d1d7b9b4d67872fbb37ac19e3b (patch)
treef45f9383c96ff9099dade555f2a6fc121abbedfb
parentb13531ff2d00911f653c9c2804319177332d9481 (diff)
downloadIshtar-d41a933729ab26d1d7b9b4d67872fbb37ac19e3b.tar.bz2
Ishtar-d41a933729ab26d1d7b9b4d67872fbb37ac19e3b.zip
Makefile: fix pep8 and pylint
-rw-r--r--Makefile.example7
1 files 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