Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(deps): update dev dependencies (ruff, nox, nox-uv) (#601)
  • Loading branch information
gjtorikian authored Mar 27, 2026
commit 8c258d2e888592c648cd8b4666815fe6474c0a16
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def format_fix(s: nox.Session) -> None:

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


@session(uv_groups=["test", "lint", "type_check"])
Expand All @@ -68,5 +68,5 @@ def ci(s: nox.Session) -> None:
"""
s.run("ruff", "format", "--check", ".")
s.run("ruff", "check", ".")
s.run("mypy")
s.run("pyright")
s.run("pytest")
14 changes: 3 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,10 @@ dev = [
{ include-group = "type_check" },
{ include-group = "nox" },
]
test = [
"pytest==8.3.4",
"pytest-asyncio==0.23.8",
"pytest-cov==5.0.0",
"six==1.17.0",
]
test = ["pytest~=8.3", "pytest-asyncio~=1.3", "pytest-cov~=7.0"]
lint = ["ruff==0.14.5"]
type_check = ["mypy==1.14.1"]
nox = [
"nox>=2024.10.9",
"nox-uv>=0.7.0",
]
type_check = ["pyright~=1.1"]
nox = ["nox~=2026.2", "nox-uv~=0.7"]


[tool.mypy]
Expand Down
28 changes: 16 additions & 12 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,14 @@ def test_authenticate_success(self, session_constants, mock_user_management):
"feature_flags": ["flag1", "flag2"],
}

with patch.object(Session, "unseal_data", return_value=mock_session), patch(
"jwt.decode", return_value=mock_jwt_payload
), patch.object(
session.jwks,
"get_signing_key_from_jwt",
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
with (
patch.object(Session, "unseal_data", return_value=mock_session),
patch("jwt.decode", return_value=mock_jwt_payload),
patch.object(
session.jwks,
"get_signing_key_from_jwt",
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
),
):
response = session.authenticate()

Expand Down Expand Up @@ -319,12 +321,14 @@ def test_authenticate_success_with_roles(
"feature_flags": ["flag1", "flag2"],
}

with patch.object(Session, "unseal_data", return_value=mock_session), patch(
"jwt.decode", return_value=mock_jwt_payload
), patch.object(
session.jwks,
"get_signing_key_from_jwt",
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
with (
patch.object(Session, "unseal_data", return_value=mock_session),
patch("jwt.decode", return_value=mock_jwt_payload),
patch.object(
session.jwks,
"get_signing_key_from_jwt",
return_value=Mock(key=session_constants["PUBLIC_KEY"]),
),
):
response = session.authenticate()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sso.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from typing import Union
from six.moves.urllib.parse import parse_qsl, urlparse
from urllib.parse import parse_qsl, urlparse
import pytest
from tests.types.test_auto_pagination_function import TestAutoPaginationFunction
from tests.utils.fixtures.mock_profile import MockProfile
Expand Down
2 changes: 1 addition & 1 deletion tests/test_user_management.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from typing import Union

from six.moves.urllib.parse import parse_qsl, urlparse
from urllib.parse import parse_qsl, urlparse
import pytest

from tests.utils.fixtures.mock_auth_factor_totp import MockAuthenticationFactorTotp
Expand Down
Loading
Loading