Skip to content

Commit 16bdf2b

Browse files
Fluf22millotp
authored andcommitted
chore(python): run pyright conditionally
1 parent ee8b122 commit 16bdf2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function formatter(language: string, cwd: string): Promise<void> {
5151
break;
5252
case 'python':
5353
await run(
54-
'poetry lock --no-update && poetry install --sync && pip freeze > requirements.txt && poetry run ruff check --fix --unsafe-fixes && poetry run ruff format && poetry run pyright',
54+
`poetry lock --no-update && poetry install --sync && pip freeze > requirements.txt && poetry run ruff check --fix --unsafe-fixes && poetry run ruff format${cwd.includes('clients') ? ' && poetry run pyright' : ''}`,
5555
{ cwd, language },
5656
);
5757
break;

0 commit comments

Comments
 (0)