mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
15 lines
295 B
Bash
15 lines
295 B
Bash
|
|
set -e
|
||
|
|
# Check if the first argument is provided
|
||
|
|
if [ $# -eq 0 ]
|
||
|
|
then
|
||
|
|
echo "Error: No example-to-run provided."
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Move to the right example folder
|
||
|
|
cd $1
|
||
|
|
|
||
|
|
# Run the example
|
||
|
|
mypy --show-column-numbers --config-file ../../photon-lib/py/pyproject.toml .
|
||
|
|
python3 -m robotpy test
|