Skip to content

Commit 342e29a

Browse files
committed
chore(deps): update dev dependencies (ruff, nox, nox-uv)
1 parent 67e445d commit 342e29a

File tree

6 files changed

+79
-109
lines changed

6 files changed

+79
-109
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def format_fix(s: nox.Session) -> None:
5656

5757
@session(uv_groups=["type_check"])
5858
def typecheck(s: nox.Session) -> None:
59-
"""Run type checking with mypy."""
60-
s.run("mypy")
59+
"""Run type checking with pyright."""
60+
s.run("pyright")
6161

6262

6363
@session(uv_groups=["test", "lint", "type_check"])
@@ -68,5 +68,5 @@ def ci(s: nox.Session) -> None:
6868
"""
6969
s.run("ruff", "format", "--check", ".")
7070
s.run("ruff", "check", ".")
71-
s.run("mypy")
71+
s.run("pyright")
7272
s.run("pytest")

pyproject.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ dev = [
2626
{ include-group = "type_check" },
2727
{ include-group = "nox" },
2828
]
29-
test = [
30-
"pytest==8.3.4",
31-
"pytest-asyncio==0.23.8",
32-
"pytest-cov==5.0.0",
33-
"six==1.17.0",
34-
]
29+
test = ["pytest~=8.3", "pytest-asyncio~=1.3", "pytest-cov~=7.0"]
3530
lint = ["ruff==0.14.5"]
36-
type_check = ["mypy==1.14.1"]
37-
nox = [
38-
"nox>=2024.10.9",
39-
"nox-uv>=0.7.0",
40-
]
31+
type_check = ["pyright~=1.1"]
32+
nox = ["nox~=2026.2", "nox-uv~=0.7"]
4133

4234

4335
[tool.mypy]

tests/test_session.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,14 @@ def test_authenticate_success(self, session_constants, mock_user_management):
249249
"feature_flags": ["flag1", "flag2"],
250250
}
251251

252-
with patch.object(Session, "unseal_data", return_value=mock_session), patch(
253-
"jwt.decode", return_value=mock_jwt_payload
254-
), patch.object(
255-
session.jwks,
256-
"get_signing_key_from_jwt",
257-
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
252+
with (
253+
patch.object(Session, "unseal_data", return_value=mock_session),
254+
patch("jwt.decode", return_value=mock_jwt_payload),
255+
patch.object(
256+
session.jwks,
257+
"get_signing_key_from_jwt",
258+
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
259+
),
258260
):
259261
response = session.authenticate()
260262

@@ -319,12 +321,14 @@ def test_authenticate_success_with_roles(
319321
"feature_flags": ["flag1", "flag2"],
320322
}
321323

322-
with patch.object(Session, "unseal_data", return_value=mock_session), patch(
323-
"jwt.decode", return_value=mock_jwt_payload
324-
), patch.object(
325-
session.jwks,
326-
"get_signing_key_from_jwt",
327-
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
324+
with (
325+
patch.object(Session, "unseal_data", return_value=mock_session),
326+
patch("jwt.decode", return_value=mock_jwt_payload),
327+
patch.object(
328+
session.jwks,
329+
"get_signing_key_from_jwt",
330+
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
331+
),
328332
):
329333
response = session.authenticate()
330334

tests/test_sso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json
22
from typing import Union
3-
from six.moves.urllib.parse import parse_qsl, urlparse
3+
from urllib.parse import parse_qsl, urlparse
44
import pytest
55
from tests.types.test_auto_pagination_function import TestAutoPaginationFunction
66
from tests.utils.fixtures.mock_profile import MockProfile

tests/test_user_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from typing import Union
33

4-
from six.moves.urllib.parse import parse_qsl, urlparse
4+
from urllib.parse import parse_qsl, urlparse
55
import pytest
66

77
from tests.utils.fixtures.mock_auth_factor_totp import MockAuthenticationFactorTotp

0 commit comments

Comments
 (0)