Set up Cursor Cloud dev environment (AGENTS.md) - #77
Draft
GabDug wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Gabriel Dugny <git@dugny.me>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #77 +/- ##
=======================================
Coverage 97.24% 97.24%
=======================================
Files 12 12
Lines 727 727
Branches 66 66
=======================================
Hits 707 707
Misses 18 18
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Sets up the development environment for
sync-pre-commit-lockin Cursor Cloud and documents durable, non-obvious notes for future agents.This project is a pure Python PDM/Poetry plugin +
sync-pre-commit-uvCLI — no services, servers, or databases. "Running the app" means invoking the CLI/plugin against a lockfile +.pre-commit-config.yaml.Changes
AGENTS.mdwith a## Cursor Cloud specific instructionssection covering lint/type-check/test/build commands and non-obvious gotchas.Environment setup (not code)
~/.local/bin(added toPATHvia~/.bashrc).pdm install -G :all --dev(installs deps + editable plugin into.venv; idempotent).Verification
pdm run lint-ruffpdm run ruff format --check .pdm run lint-mypypdm run testNote: 3 tests in
tests/test_shell_printer.pyfail only because the Cloud VM setsNO_COLOR=1/FORCE_COLOR=0in the ambient environment;use_color()honorsNO_COLOR. Running with them unset (env -u NO_COLOR -u FORCE_COLOR pdm run test) yields a clean 155 passed. This is an environment quirk, not a code bug, and is documented inAGENTS.md.End-to-end demo
Ran the
sync-pre-commit-uvCLI against a copy oftests/fixtures/uv_project/(lock pinsruff 0.13.2, config had stalev0.1.0). It detected and rewrote the configrevv0.1.0 -> v0.13.2, then reported idempotent on re-run.