Skip to main content

scripts/run_yt_dlp_alexwlchan_tests.sh

1#!/usr/bin/env bash
3set -o errexit
4set -o nounset
6# Print a command in blue, then run the command
7run_command() {
8 echo ""
9 echo -e "\033[34m-> $@\033[0m"
10 bash -c "$@"
13run_command 'ruff format'
14run_command 'ruff check *.py'
15run_command 'ty check *.py'
16run_command "python3 -m coverage run -m pytest -q test_yt-dlp_alexwlchan.py"
17run_command "python3 -m coverage report"