openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
59c89d2815453fceb8b8a3f86e99f283326a3c70

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/lint

18lines · modecode

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