Skip to content

Commit 93107ef

Browse files
chore(internal): add --fix argument to lint script
1 parent e517792 commit 93107ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/lint

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ set -e
44

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

7-
echo "==> Running lints"
8-
rye run lint
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
914

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

0 commit comments

Comments
 (0)