]> Raphaël G. Git Repositories - youtubedl/commitdiff
debian/patches: Add patch to skip style checks from flake8 during test.
authorRogério Brito <rbrito@ime.usp.br>
Fri, 10 Apr 2020 13:12:43 +0000 (10:12 -0300)
committerRogério Brito <rbrito@ime.usp.br>
Fri, 10 Apr 2020 13:12:43 +0000 (10:12 -0300)
debian/patches/series
debian/patches/skip-style-checks-for-flake8.patch [new file with mode: 0644]

index 119b5528e6c735abba291b5fa1c0acf037b1aae4..01284f916b48d72a5fa9c72c765b80fd579784fd 100644 (file)
@@ -1,3 +1,4 @@
 skip_support_file_installation.patch
 disable-autoupdate-mechanism.patch
 disable_more_online_tests.patch
 skip_support_file_installation.patch
 disable-autoupdate-mechanism.patch
 disable_more_online_tests.patch
+skip-style-checks-for-flake8.patch
diff --git a/debian/patches/skip-style-checks-for-flake8.patch b/debian/patches/skip-style-checks-for-flake8.patch
new file mode 100644 (file)
index 0000000..76f77fa
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/Makefile b/Makefile
+index 3e17365..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