Skip to content

Commit e3ab819

Browse files
committed
add pyright everywhere
1 parent fe33ef6 commit e3ab819

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

playground/python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ repository = "https://github.com/algolia/api-clients-automation"
1111
[tool.poetry.dependencies]
1212
python = ">= 3.8.1"
1313
algoliasearch = { path = "../../clients/algoliasearch-client-python", develop = true }
14-
ruff = "== 0.6.4"
14+
ruff = "== 0.6.8"
15+
pyright = "== 1.1.383"
1516
python-dotenv = "== 1.0.1"
1617

1718
[tool.poetry.scripts]

scripts/formatter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ 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',
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',
5555
{ cwd, language },
5656
);
57-
await run('poetry run pyright', { cwd, language });
5857
break;
5958
case 'ruby':
6059
await run('bundle install', { cwd, language });

templates/python/pyproject.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ async-timeout = ">= 4.0.3"
2323
pydantic = ">= 2"
2424

2525
[tool.poetry.group.dev.dependencies]
26-
ruff = "== 0.6.4"
27-
pyright = "^1.1.383"
26+
ruff = "== 0.6.8"
27+
pyright = "== 1.1.383"
2828

2929
[tool.ruff]
3030
line-length = 88
@@ -41,4 +41,4 @@ quote-style = "double"
4141

4242
[build-system]
4343
requires = ["poetry-core"]
44-
build-backend = "poetry.core.masonry.api"
44+
build-backend = "poetry.core.masonry.api"

templates/python/snippets/pyproject.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ repository = "https://github.com/algolia/api-clients-automation"
1010
[tool.poetry.dependencies]
1111
python = "^3.8.1"
1212
algoliasearch = { path = "../../clients/algoliasearch-client-python", develop = true }
13-
ruff = "== 0.6.4"
13+
ruff = "== 0.6.8"
14+
pyright = "== 1.1.383"

tests/output/python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ repository = "https://github.com/algolia/api-clients-automation"
1010
[tool.poetry.dependencies]
1111
python = "^3.8.1"
1212
algoliasearch = { path = "../../../clients/algoliasearch-client-python", develop = true }
13-
ruff = "== 0.6.4"
13+
ruff = "== 0.6.8"
14+
pyright = "== 1.1.383"
1415
pytest = "=8.3.3"
1516
python-dotenv = "=1.0.1"
1617
pytest-aiohttp = "=1.0.5"

0 commit comments

Comments
 (0)