You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rye is deprecated in favor of uv (its successor from the same maintainers).
Replace all rye usage with uv equivalents:
- pyproject.toml: [tool.rye] → [tool.uv], merge dev-dependencies into
[dependency-groups] dev, remove [tool.rye.scripts]
- Shell scripts: rye run → uv run with inlined commands
- CI workflows: rye install → astral-sh/setup-uv@v5 action
- Dev container: install uv instead of rye
- Brewfile: brew "uv"
- Delete requirements.lock and requirements-dev.lock (replaced by uv.lock)
- Update all docs, AI assistant configs, and cursor rules
Copy file name to clipboardExpand all lines: .cursor/rules/00_repo_tooling.mdc
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ globs: "**/*"
4
4
alwaysApply: true
5
5
---
6
6
7
-
Use Rye for Python dependency management and workflows. Prefer these commands:
7
+
Use uv for Python dependency management and workflows. Prefer these commands:
8
8
9
-
- Setup env: `./scripts/bootstrap` or `rye sync --all-features` [[Use Rye in this repo]]
10
-
- Run tests: `rye run pytest` or `./scripts/test`
11
-
- Run a specific test: `rye run pytest path/to/test_file.py::TestClass::test_method -v`
12
-
- Format: `rye run format` or `./scripts/format`
13
-
- Lint: `rye run lint` or `./scripts/lint`
14
-
- Type check: `rye run typecheck` (runs pyright and mypy)
15
-
- Build: `rye build`
9
+
- Setup env: `./scripts/bootstrap` or `uv sync --all-groups`
10
+
- Run tests: `uv run pytest` or `./scripts/test`
11
+
- Run a specific test: `uv run pytest path/to/test_file.py::TestClass::test_method -v`
12
+
- Format: `uv run ruff format` or `./scripts/format`
13
+
- Lint: `uv run ruff check .` or `./scripts/lint`
14
+
- Type check: `uv run pyright`
15
+
- Build: `uv build`
16
16
17
17
Environment requirements:
18
18
@@ -21,4 +21,4 @@ Environment requirements:
21
21
22
22
Notes:
23
23
24
-
- Only use `uv` inside 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.
24
+
- Tutorial folders have their own virtualenv (managed by a tutorial specific pyproject.toml inside the relevant tutorial folder). Use `uv run` within those folders.
0 commit comments