From ee6dfe8308c967573a9d12d8dbbc1533cec45f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Tue, 16 Dec 2014 19:38:56 +0100 Subject: [PATCH] Use flake8 instead of pyflakes and pep8 It combines both tools --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6fb820c2a..524c5fcda 100644 --- a/Makefile +++ b/Makefile @@ -36,12 +36,11 @@ install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtu install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish codetest: - PYFLAKES_OUT=$$(pyflakes youtube_dl | grep -v youtube_dl/extractor/__init__.py); \ - if test -n "$$PYFLAKES_OUT"; then \ - echo "$$PYFLAKES_OUT"; \ + FLAKE8_OUT=$$(flake8 --ignore E501 . | grep -v youtube_dl/extractor/__init__.py); \ + if test -n "$$FLAKE8_OUT"; then \ + echo "$$FLAKE8_OUT"; \ exit 1; \ fi - pep8 . --ignore E501 test: #nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test