Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ jobs:
pip install -e '.[dev,full]'

- name: Lint with ruff
# Advisory for now: the ruff step had never actually run (the workflow
# only triggered on `main` while the repo lives on `master`), so it
# surfaces a large backlog of pre-existing style findings. Tracked for a
# dedicated cleanup; kept non-blocking so it doesn't gate unrelated work.
continue-on-error: true
run: ruff check src/

- name: Dangling-code audit (stubs + swallowed excepts)
Expand Down
9 changes: 4 additions & 5 deletions src/pacer_cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""

from dataclasses import dataclass
from typing import Optional

import requests

Expand All @@ -21,8 +20,8 @@ class AuthResult:
"""Result of PACER authentication attempt."""

success: bool
token: Optional[str] = None # nextGenCSO 128-byte token
error: Optional[str] = None
token: str | None = None # nextGenCSO 128-byte token
error: str | None = None
login_result: str = ""


Expand All @@ -41,7 +40,7 @@ def generate_totp(secret: str) -> str:

def authenticate(
config: PacerConfig,
otp_code: Optional[str] = None,
otp_code: str | None = None,
) -> AuthResult:
"""Authenticate with PACER and get session token.

Expand Down Expand Up @@ -152,7 +151,7 @@ def logout(config: PacerConfig, token: str) -> bool:
return False


def test_credentials(config: PacerConfig, otp_code: Optional[str] = None) -> AuthResult:
def test_credentials(config: PacerConfig, otp_code: str | None = None) -> AuthResult:
"""Test PACER credentials without keeping the session.

Authenticates and immediately logs out to verify credentials work.
Expand Down
Loading
Loading