Skip to content

fix(ci): declare httpx in the dev extra - #121

Merged
adaamko merged 1 commit into
mainfrom
fix/dev-extra-httpx
Oct 9, 2026
Merged

adaamko merged 1 commit into
mainfrom
fix/dev-extra-httpx

Conversation

@adaamko

@adaamko adaamko commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

openai 3.26.1 depends on httpx2 instead of httpx, so pip install -e ".[dev]" no longer brings httpx in transitively. lettucedetect_api.client imports httpx, and tests/test_claude_code_hook_pytest.py::TestMain::test_api_mode_uses_client fails on CI with AttributeError: module 'lettucedetect_api' has no attribute 'client' (main is affected, not only open PRs).

The test suite exercises the API client, so httpx belongs in the dev extra. Runtime installs are unchanged: the api extra already declares it.

Verified in a clean Python 3.11 env with pip install -e ".[dev]": 182 passed (was 1 failed before).

  • Bug fix
  • I certify that I have the right to submit this code and that it may be distributed under the repository's MIT license

openai 3.26 depends on httpx2 instead of httpx, so httpx is no longer installed
transitively and the API-client tests fail to import lettucedetect_api.client.
@adaamko
adaamko merged commit 2718d65 into main Oct 9, 2026
4 checks passed
@adaamko
adaamko deleted the fix/dev-extra-httpx branch October 9, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant