2024-05-01 00:00:17 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
2025-12-18 21:52:28 +00:00
|
|
|
if [ "$1" = "--fix" ]; then
|
|
|
|
|
echo "==> Running lints with --fix"
|
|
|
|
|
rye run fix:ruff
|
|
|
|
|
else
|
|
|
|
|
echo "==> Running lints"
|
|
|
|
|
rye run lint
|
|
|
|
|
fi
|
2024-05-01 00:00:17 -04:00
|
|
|
|
2024-05-14 10:46:55 -04:00
|
|
|
echo "==> Making sure it imports"
|
|
|
|
|
rye run python -c 'import openai'
|