File: lint

package info (click to toggle)
python-openai 2.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,892 kB
  • sloc: python: 71,457; sh: 170; makefile: 7
file content (16 lines) | stat: -rwxr-xr-x 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -e

cd "$(dirname "$0")/.."

if [ "$1" = "--fix" ]; then
  echo "==> Running lints with --fix"
  rye run fix:ruff
else
  echo "==> Running lints"
  rye run lint
fi

echo "==> Making sure it imports"
rye run python -c 'import openai'