Package: youtube-dl / 2021.06.06-1

0004-Skip-directories-and-style-checks-for-flake8.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?q?Rog=C3=A9rio_Theodoro_de_Brito?= <rbrito@gmail.com>
Date: Sun, 22 Nov 2020 20:05:27 -0300
Subject: Skip directories and style checks for flake8

Forwarded: no
Last-Update: 2020-04-10
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 7fcfcef..aacc281 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,10 @@ 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 .
+	flake8 \
+		--exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,.pc,.pybuild \
+		--ignore=E121,E123,E126,E226,E24,E704,E402,E501,E731,E741,W503,W504,N802,N803,N806,N816,F401,F821,E302,E305,N801,N815,E265,N813,F403,F405 \
+		.
 
 test:
 	#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test