fix: reorder imports and use ty-compatible type suppression

This commit is contained in:
Johan Lundberg 2026-02-19 14:29:01 +01:00
parent f648422227
commit 1054feb534
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1
12 changed files with 14 additions and 14 deletions

View file

@ -4,9 +4,9 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from tests.conftest import get_csrf_token
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User, WebAuthnCredential
from tests.conftest import get_csrf_token
async def _create_user_and_login(client: AsyncClient) -> str:

View file

@ -3,9 +3,9 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from tests.conftest import get_csrf_token
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User
from tests.conftest import get_csrf_token
async def _login(client: AsyncClient, username: str = "alice", password: str = "testpass") -> None:

View file

@ -3,9 +3,9 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from tests.conftest import get_csrf_token
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User, WebAuthnCredential
from tests.conftest import get_csrf_token
async def _create_user_and_login(client: AsyncClient) -> str:

View file

@ -17,9 +17,9 @@ from fido2.webauthn import (
)
from httpx import AsyncClient
from tests.conftest import get_csrf_token
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User, WebAuthnCredential
from tests.conftest import get_csrf_token
RP_ID = "localhost"
ORIGIN = "http://localhost:8000"

View file

@ -3,9 +3,9 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from tests.conftest import get_csrf_token
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User
from tests.conftest import get_csrf_token
async def test_password_login_unknown_user_returns_error_fragment(client: AsyncClient) -> None:

View file

@ -6,8 +6,8 @@ from fido2.cose import ES256
from fido2.webauthn import Aaguid, AttestedCredentialData
from httpx import AsyncClient
from tests.conftest import get_csrf_token
from porchlight.models import User, WebAuthnCredential
from tests.conftest import get_csrf_token
RP_ID = "localhost"
ORIGIN = "http://localhost:8000"