Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 06:00 UTC
| 1 | # Python Verification |
| 2 | |
| 3 | ## Setup |
| 4 | |
| 5 | From `python/`: |
| 6 | |
| 7 | ```bash |
| 8 | make env |
| 9 | source .venv/bin/activate |
| 10 | ``` |
| 11 | |
| 12 | ## Make Targets |
| 13 | |
| 14 | ```bash |
| 15 | make fmt |
| 16 | make chk |
| 17 | make tst |
| 18 | make snt |
| 19 | make type_inference |
| 20 | make build |
| 21 | ``` |
| 22 | |
| 23 | Friendly aliases exist for the short names: `make format` (fmt), `make check` (chk), `make test` (tst), `make sanity` (snt). |
| 24 | |
| 25 | ## Nox Sessions |
| 26 | |
| 27 | Current sessions include: |
| 28 | |
| 29 | - `fmt`: Ruff import fixes and formatting. |
| 30 | - `chk`: Ruff check and mypy. |
| 31 | - `fix`: Ruff automatic fixes. |
| 32 | - `type_inference`: provider return-type inference checks. |
| 33 | - `tst`: pytest test suite, plus the `openai_agents` and `claude_agent_sdk` provider package tests. |
| 34 | - `tst_autogen`: Autogen regressions in an isolated protobuf-compatible environment. |
| 35 | - `snt`: sanity tests. |
| 36 | |
| 37 | When adding or renaming provider packages, inspect the explicit provider install lists in the `tst` and `type_inference` sessions (and `.github/workflows/py.test.yml`), and the `type_inference` checked test-file list. |
| 38 | |
| 39 | ## Test Placement |
| 40 | |
| 41 | - Core tests live under `python/tests/`. |
| 42 | - Use existing fixtures from `python/tests/conftest.py`. |
| 43 | - Provider behavior should include provider-specific tests when applicable. |