Instruction file imported from scaleapi/scale-agentex-python (
.cursor/rules/00_repo_tooling.mdc). Copyright stays with the author.
Use Rye for Python dependency management and workflows. Prefer these commands:
- Setup env:
./scripts/bootstraporrye sync --all-features[[Use Rye in this repo]] - Run tests:
rye run pytestor./scripts/test - Run a specific test:
rye run pytest path/to/test_file.py::TestClass::test_method -v - Format:
rye run formator./scripts/format - Lint:
rye run lintor./scripts/lint - Type check:
rye run typecheck(runs pyright and mypy) - Build:
rye build
Environment requirements:
- Python 3.12+ is required
- A mock server auto-starts for tests on port 4010
Notes:
- Only use
uvinside of tutorial folders which have their own virtualenv (managed by a tutorial specific pyproject.toml inside the relevant tutorial folder). Otherwise use rye at the top level.