Skip to content

Commit 5742b1e

Browse files
committed
Start requiring pyright typechecking
1 parent ed9112a commit 5742b1e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

pyproject.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ lint = [
7777
{cmd = "ruff check --select I"},
7878
{cmd = "ruff format --check"},
7979
{ref = "lint-types"},
80+
{cmd = "pyright"},
8081
{ref = "lint-docs"},
8182
]
8283
# TODO(cretz): Why does pydocstyle complain about @overload missing docs after
@@ -174,6 +175,34 @@ privacy = [
174175
project-name = "Temporal Python"
175176
sidebar-expand-depth = 2
176177

178+
[tool.pyright]
179+
include = ["temporalio", "tests"]
180+
exclude = [
181+
"temporalio/api",
182+
"temporalio/bridge/proto",
183+
"tests/worker/workflow_sandbox/testmodules/proto",
184+
"temporalio/bridge/worker.py",
185+
"temporalio/client.py",
186+
"temporalio/contrib/opentelemetry.py",
187+
"temporalio/converter.py",
188+
"temporalio/testing/_workflow.py",
189+
"temporalio/worker/_activity.py",
190+
"temporalio/worker/_replayer.py",
191+
"temporalio/worker/_worker.py",
192+
"temporalio/worker/workflow_sandbox/_importer.py",
193+
"temporalio/worker/workflow_sandbox/_restrictions.py",
194+
"temporalio/workflow.py",
195+
"tests/api/test_grpc_stub.py",
196+
"tests/conftest.py",
197+
"tests/contrib/test_opentelemetry.py",
198+
"tests/test_converter.py",
199+
"tests/test_service.py",
200+
"tests/test_workflow.py",
201+
"tests/worker/test_activity.py",
202+
"tests/worker/test_workflow.py",
203+
"tests/worker/workflow_sandbox/test_importer.py",
204+
]
205+
177206
[tool.ruff]
178207
target-version = "py38"
179208

0 commit comments

Comments
 (0)