| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | cd "$(dirname "$0")/.." |
| 6 | |
| 7 | if [ "$1" = "--fix" ]; then |
| 8 | echo "==> Running lints with --fix" |
| 9 | rye run fix:ruff |
| 10 | else |
| 11 | echo "==> Running lints" |
| 12 | rye run lint |
| 13 | fi |
| 14 | |
| 15 | echo "==> Making sure it imports" |
| 16 | rye run python -c 'import openai' |
| 17 | |