Skip to main content

scripts/run_snippets_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 create_snippets.py'