-
Notifications
You must be signed in to change notification settings - Fork 16
Set up Cursor Cloud dev environment (AGENTS.md) #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
cpenned
wants to merge
1
commit into
cursor/batch-send-params-3669
Choose a base branch
from
cursor/setup-dev-environment-4a92
base: cursor/batch-send-params-3669
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+25
−0
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,25 @@ | ||||||||||||
| # AGENTS.md | ||||||||||||
|
|
||||||||||||
| ## Cursor Cloud specific instructions | ||||||||||||
|
|
||||||||||||
| This repo is the **Resend Python SDK** — a client library (published to PyPI as `resend`). | ||||||||||||
| There is **no server, database, or long-running service**; the only external dependency is the | ||||||||||||
| Resend REST API (`https://api.resend.com`), which the unit tests mock. Standard dev commands live | ||||||||||||
| in `tox.ini` (envs: `format`, `lint`, `mypy`, `py`); the update script pre-installs the toolchain. | ||||||||||||
|
|
||||||||||||
| Non-obvious caveats for this environment: | ||||||||||||
|
|
||||||||||||
| - **Use `python3`, not `python`** (there is no `python` shim). Console scripts like `tox` install | ||||||||||||
| to `~/.local/bin`, which may not be on `PATH`; call `python3 -m <tool>` or add it to `PATH`. | ||||||||||||
| - **`flake8<5.0.0` (pinned in `tox.ini`) is incompatible with Python 3.12** (the system default), | ||||||||||||
| failing with `'EntryPoints' object has no attribute 'get'`. CI only lints/type-checks/tests on | ||||||||||||
| Python 3.8–3.11. **Python 3.11 is installed** for this reason. Force tox to use it via basepython | ||||||||||||
| overrides: | ||||||||||||
| - Lint: `tox -e lint -x testenv:lint.basepython=python3.11` | ||||||||||||
| - Mypy: `tox -e mypy -x testenv:mypy.basepython=python3.11` | ||||||||||||
| - Tests: `tox -e py -x testenv:py.basepython=python3.11` | ||||||||||||
| - Tests/mypy also run fine directly on Python 3.12 (`python3 -m pytest --doctest-modules tests`); | ||||||||||||
| **only flake8 requires 3.11**. `tox` defaults `basepython` to the interpreter it runs under | ||||||||||||
| (3.12), so the overrides above are needed to match CI. | ||||||||||||
| - The `examples/` scripts hit the **real** Resend API and require `RESEND_API_KEY` (and optionally | ||||||||||||
| `RESEND_API_URL` to point at a different base URL). They are not needed for tests/lint/build. | ||||||||||||
|
Comment on lines
+24
to
+25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: The webhook receiver example is not an API client example: it starts a local Flask server and uses Prompt for AI agents
Suggested change
|
||||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: The documented tox commands still fail when
~/.local/binis not onPATH, the setup described immediately above. Use module invocation consistently so the commands work without a PATH change.Prompt for AI agents