File: 0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch

package info (click to toggle)
yt-dlp 2025.11.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 14,532 kB
  • sloc: python: 219,036; javascript: 556; makefile: 220; sh: 96
file content (27 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (3)
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
27
From: =?utf-8?q?Rog=C3=A9rio_Brito?= <rbrito@gmail.com>
Date: Sun, 22 Nov 2020 20:06:55 -0300
Subject: Makefile: Don't run flake8 when running offlinetest.

Unfortunately, due to the dynamic nature of python, we most certainly would
like to run flake8 when testing the package. Alas, flake8 sometimes
generates style-only warning or "errors" that break the build, in a similar
fashion to what -Werror does to GCC or other compilers.

Therefore, I'm disabling this.
---
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/Makefile
+++ b/Makefile
@@ -84,8 +84,8 @@ test:
 	$(PYTHON) -m pytest -Werror
 	$(MAKE) codetest
 
-offlinetest: codetest
-	$(PYTHON) -m pytest -Werror -m "not download"
+offlinetest:
+	$(PYTHON) -m pytest -m "not download"
 
 PY_CODE_FOLDERS_CMD = find yt_dlp -type f -name '__init__.py' | sed 's|/__init__\.py||' | grep -v '/__' | sort
 PY_CODE_FOLDERS != $(PY_CODE_FOLDERS_CMD)