From 49c2ec070dd1f0905570e4ad9dd00101d3c74b43 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Fri, 26 Dec 2014 02:11:19 +0100 Subject: [PATCH] Makefile: move pylint to lib/Makefile --- Makefile | 5 +---- lib/Makefile | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d803e81..1fd7432 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,6 @@ POD2MAN ?= pod2man --section 1 --utf8 -c "svtplay-dl manual" \ PYTHON ?= /usr/bin/env python export PYTHONPATH=lib -# Disable convention, refactor, and TODO warnings -PYLINT_OPTS = --report=no -d I -d C -d R -d W0511 - # If you don't have a python3 environment (e.g. mock for py3 and # nosetests3), you can remove the -3 flag. TEST_OPTS ?= -2 -3 @@ -54,7 +51,7 @@ cover: sh run-tests.sh -C pylint: - find lib -name '*.py' -a '!' -path '*/tests/*' | xargs pylint $(PYLINT_OPTS) + $(MAKE) -C lib pylint clean: $(MAKE) -C lib clean diff --git a/lib/Makefile b/lib/Makefile index f35f84f..7eab4f5 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,9 +1,14 @@ +PYLINT_OPTS = --report=no -d I -d C -d R -d W0511 + all: svtplay-dl clean: find . -name '*.pyc' -exec rm {} \; rm -f svtplay-dl +pylint: + pylint $(PYLINT_OPTS) svtplay_dl + export PACKAGES = svtplay_dl \ svtplay_dl.fetcher \ svtplay_dl.utils \