openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
scripts/lint
18lines · modecode
| 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 | uv run ruff check --fix . |
| 10 | else |
| 11 | echo "==> Running lints" |
| 12 | uv run ruff check . |
| 13 | uv run ./scripts/run-pyright |
| 14 | uv run mypy . |
| 15 | fi |
| 16 | |
| 17 | echo "==> Making sure it imports" |
| 18 | uv run python -c 'import openai' |
| 19 | |