]> jfr.im git - yt-dlp.git/blobdiff - Makefile
[ie/mlbtv] Fix extraction (#10296)
[yt-dlp.git] / Makefile
index cef4bc6cb1acbfe9506fbfa15ca4a15b7b5e3834..e1de7f3e91a7bf041e8c340255fb576a3169ab6a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ clean-dist:
        yt_dlp/extractor/lazy_extractors.py *.spec CONTRIBUTING.md.tmp yt-dlp yt-dlp.exe yt_dlp.egg-info/ AUTHORS
 clean-cache:
        find . \( \
-               -type d -name .pytest_cache -o -type d -name __pycache__ -o -name "*.pyc" -o -name "*.class" \
+               -type d -name ".*_cache" -o -type d -name __pycache__ -o -name "*.pyc" -o -name "*.class" \
        \) -prune -exec rm -rf {} \;
 
 completion-bash: completions/bash/yt-dlp
@@ -70,14 +70,15 @@ uninstall:
        rm -f $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish
 
 codetest:
-       flake8 .
+       ruff check .
+       autopep8 --diff .
 
 test:
-       $(PYTHON) -m pytest
+       $(PYTHON) -m pytest -Werror
        $(MAKE) codetest
 
 offlinetest: codetest
-       $(PYTHON) -m pytest -k "not download"
+       $(PYTHON) -m pytest -Werror -m "not download"
 
 CODE_FOLDERS_CMD = find yt_dlp -type f -name '__init__.py' | sed 's,/__init__.py,,' | grep -v '/__' | sort
 CODE_FOLDERS != $(CODE_FOLDERS_CMD)
@@ -151,7 +152,7 @@ yt-dlp.tar.gz: all
                --exclude '*.pyo' \
                --exclude '*~' \
                --exclude '__pycache__' \
-               --exclude '.pytest_cache' \
+               --exclude '.*_cache' \
                --exclude '.git' \
                -- \
                README.md supportedsites.md Changelog.md LICENSE \