openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
scripts/lint
16lines · modeblame
d2738d42Stainless Bot2 years ago | 1 | #!/usr/bin/env bash |
| 2 | | |
| 3 | set -e | |
| 4 | | |
| 5 | cd "$(dirname "$0")/.." | |
| 6 | | |
a3c27a28stainless-app[bot]6 months ago | 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 | |
d2738d42Stainless Bot2 years ago | 14 | |
526a05ebStainless Bot2 years ago | 15 | echo "==> Making sure it imports" |
| 16 | rye run python -c 'import openai' |