瀏覽代碼

Move flake8 configuration to setup.cfg

It will be used when calling flake8 from any directory in the project
Jaime Marquínez Ferrándiz 10 年之前
父節點
當前提交
dc9a441bfa
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 1 5
      Makefile
  2. 4 0
      setup.cfg

+ 1 - 5
Makefile

@@ -36,11 +36,7 @@ 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:
-	FLAKE8_OUT=$$(flake8 --ignore E501 . | grep -v youtube_dl/extractor/__init__.py); \
-	if test -n "$$FLAKE8_OUT"; then \
-		echo "$$FLAKE8_OUT"; \
-		exit 1; \
-	fi
+	flake8 .
 
 test:
 	#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test

+ 4 - 0
setup.cfg

@@ -1,2 +1,6 @@
 [wheel]
 universal = True
+
+[flake8]
+exclude = youtube_dl/extractor/__init__.py
+ignore = E501