]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Use flake8 instead of pyflakes and pep8
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 16 Dec 2014 18:38:56 +0000 (19:38 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 16 Dec 2014 19:34:07 +0000 (20:34 +0100)
It combines both tools

Makefile

index 6fb820c2a456183bc2d75a393bbdb3c8f9f47bcb..524c5fcda6c5095ad47738d8b5e493eecee54053 100644 (file)
--- 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