Skip to content

Commit ec9a3fd

Browse files
committed
chore: bring lint, pyright, and lockfile updates from oagen
1 parent 8c258d2 commit ec9a3fd

File tree

4 files changed

+129
-258
lines changed

4 files changed

+129
-258
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
run: uv run ruff check --extend-exclude .devbox
3232

3333
- name: Type check
34-
run: uv run mypy
34+
run: uv run pyright

pyproject.toml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@ version = "5.46.0"
44
description = "WorkOS Python Client"
55
readme = "README.md"
66
license = "MIT"
7-
authors = [{ name = "WorkOS", email = "team@workos.com" }]
7+
authors = [{ name = "WorkOS", email = "sdk@workos.com" }]
88
requires-python = ">=3.10"
99

10-
dependencies = [
11-
"cryptography>=44.0.2",
12-
"httpx~=0.28.1",
13-
"pydantic>=2.10.4",
14-
"pyjwt>=2.12.0",
15-
]
10+
dependencies = ["cryptography~=46.0", "httpx~=0.28", "pyjwt~=2.12"]
1611

1712
[project.urls]
1813
Homepage = "https://workos.com/docs/sdks/python"
@@ -25,24 +20,21 @@ dev = [
2520
{ include-group = "lint" },
2621
{ include-group = "type_check" },
2722
{ include-group = "nox" },
23+
"pyright~=1.1",
24+
]
25+
test = [
26+
"pytest~=9.0",
27+
"pytest-asyncio~=1.3",
28+
"pytest-cov~=7.1",
29+
"pytest-httpx~=0.36",
2830
]
29-
test = ["pytest~=8.3", "pytest-asyncio~=1.3", "pytest-cov~=7.0"]
30-
lint = ["ruff==0.14.5"]
31+
lint = ["ruff~=0.15"]
3132
type_check = ["pyright~=1.1"]
3233
nox = ["nox~=2026.2", "nox-uv~=0.7"]
3334

3435

35-
[tool.mypy]
36-
packages = "workos"
37-
warn_return_any = true
38-
warn_unused_configs = true
39-
warn_unreachable = true
40-
warn_redundant_casts = true
41-
warn_no_return = true
42-
warn_unused_ignores = true
43-
implicit_reexport = true
44-
strict_equality = true
45-
strict = true
36+
[tool.pytest.ini_options]
37+
asyncio_default_fixture_loop_scope = "function"
4638

4739
[tool.ruff.lint.per-file-ignores]
4840
"*/__init__.py" = ["F401", "F403"]
@@ -54,6 +46,10 @@ max-complexity = 10
5446
source-include = ["py.typed"]
5547
source-exclude = ["tests*"]
5648

49+
[tool.pyright]
50+
typeCheckingMode = "strict"
51+
include = ["workos"]
52+
5753
[build-system]
58-
requires = ["uv_build>=0.8.15,<0.9.0"]
54+
requires = ["uv_build~=0.11"]
5955
build-backend = "uv_build"

pyrightconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"include": ["src", "tests"],
3+
"exclude": ["noxfile.py", ".nox", ".venv", "**/__pycache__"],
4+
"reportIncompatibleVariableOverride": false
5+
}

0 commit comments

Comments
 (0)