Files
opendbc-meb/test.sh
Adeeb Shihadeh 57be4f17cd enable pre-commit (#2236)
* fix codespell

* disable for now
2025-05-14 08:58:57 -07:00

26 lines
478 B
Bash
Executable File

#!/bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
source ./setup.sh
# *** build ***
scons -j8
# *** lint ***
# TODO: pre-commit is slow; replace it with openpilot's "op lint"
pre-commit run --all-files
# too many false positives atm :(
#ty check .
# *** test ***
pytest -n8 --ignore opendbc/safety
# *** all done ***
GREEN='\033[0;32m'
NC='\033[0m'
printf "\n${GREEN}All good!${NC} Finished build, lint, and test in ${SECONDS}s\n"