Skip to content

feat: LangGraph integration docs + mypy CI fix#15

Merged
arieradle merged 3 commits intomainfrom
feat/langgraph-integration
Mar 12, 2026
Merged

feat: LangGraph integration docs + mypy CI fix#15
arieradle merged 3 commits intomainfrom
feat/langgraph-integration

Conversation

@arieradle
Copy link
Owner

Summary

  • Merges main (LiteLLM adapter) into this branch
  • Adds comprehensive LangGraph documentation (no code changes needed — shekel works with LangGraph out of the box via existing patches)
  • Fixes mypy CI failure on Python 3.11: adds follow_imports = "skip" for _pytest.* to prevent mypy 1.19.1 from following into pytest internals that use match syntax

Changes

  • docs/integrations/langgraph.md — updated install instructions, removed budgeted_graph() references
  • docs/api-reference.md, docs/installation.md, docs/quickstart.md, docs/index.md, docs/changelog.md — consistent with above
  • examples/langgraph_demo.py — cleaned up, uses budget() directly
  • pyproject.toml — removed langgraph extra, added mypy _pytest.* override

Test plan

  • CI passes (all Python versions)
  • mypy shekel/ passes locally
  • All 491 tests pass

🤖 Generated with Claude Code

…ectly

budgeted_graph() was a 3-line wrapper around budget() that added no
behavior. Shekel patches OpenAI/Anthropic at import time, so budget()
already works with any framework including LangGraph out of the box.

Removes:
- shekel/integrations/langgraph.py
- tests/integrations/test_langgraph_integration.py
- shekel[langgraph] optional extra
- All docs references to budgeted_graph()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

arieradle and others added 2 commits March 12, 2026 14:45
@arieradle arieradle merged commit 796179e into main Mar 12, 2026
9 checks passed
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