Permalink
Browse files

Fixing Makefile

  • Loading branch information...
jjmaestro committed Aug 24, 2012
1 parent 4fd9713 commit 9eaeabeb675f34270d96a32565998a9805bda1e7
Showing with 13 additions and 6 deletions.
  1. +13 −6 Makefile
View
@@ -10,11 +10,18 @@ release:
documentation:
cd docs; make html
+
+.PHONY: flake8 pep8 syntax
+
+flake8:
+ @echo "flake8 syntax check"
+# flake 8 --ignore=Warnings so we have to also use grep :(
+ @flake8 --ignore=E501,W404 facepy/ tests/ | \
+ (grep -vE 'W404' || true)
+
pep8:
- @echo "Running PEP8 checks"
-# flake 8 --ignore and --exclude is broken so we have to also use grep :(
- @flake8=$(flake8 --ignore=E501,W404 . --exclude=docs | \
- grep -v 'W404' | \
- grep -v '^./docs')
+ @echo "pep8 syntax check"
# We run pep8 on its own because flake8 embeds an old version of pep8
- @pep8 --ignore=E501 --exclude=docs .
+ @pep8 --ignore=E501 facepy/ tests/
+
+syntax: flake8 pep8

0 comments on commit 9eaeabe

Please sign in to comment.