Initial commit with translated description

This commit is contained in:
2026-03-29 13:13:35 +08:00
commit 1d2061613e
32 changed files with 4399 additions and 0 deletions

20
scripts/run_tests.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# Prevent Python from writing __pycache__/ bytecode files into the repo.
export PYTHONDONTWRITEBYTECODE=1
cd "$(dirname "$0")/.."
# Clean up any stray bytecode from previous runs (should never be committed).
find . -name '__pycache__' -type d -prune -exec rm -rf {} +
find . -name '*.pyc' -type f -delete
python3 -m unittest discover -s tests -v
# Sanity check: tests should not leave bytecode behind.
if find . -name '__pycache__' -o -name '*.pyc' | grep -q .; then
echo "ERROR: Python bytecode (__pycache__ / *.pyc) was created during tests." >&2
echo "Tip: ensure PYTHONDONTWRITEBYTECODE=1 is honored and you're not running Python with -B disabled." >&2
exit 1
fi

2312
scripts/tesla.py Normal file

File diff suppressed because it is too large Load Diff