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
Copy file name to clipboardExpand all lines: AGENTS.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,12 @@
17
17
-`pytest -n auto path/to/test.py` — run a test file
18
18
-`pytest path/to/test.py::test_name` — run a single test
19
19
20
+
## uv usage
21
+
22
+
Always pass `--no-sync` to `uv run`: `uv run --no-sync --active …`.
23
+
24
+
`uv run` implicitly syncs the active project to its default-groups before running, which re-resolves dependencies and can clobber a venv's group-pinned packages — e.g. the torch pin in `.venv-lowest-torch`/`.venv-highest-torch` gets re-anchored back to the default torch. Our Make targets always prepare the environment first via `use_env`/`setup_env.sh`, so by the time `uv run` executes the deps are already correct. A `uv run` invocation should be a read-only run of a command in that prepared env, never a dependency mutation — `--no-sync` enforces that.
25
+
20
26
## Editing Guidelines
21
27
22
28
- Use `@path` to reference small files (loaded into every session automatically).
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,7 @@ Before pushing your changes, run these locally:
69
69
-`make check` — full lint and `mypy` type-check pass
70
70
-`make test` — full test suite (parallelized with `pytest-xdist`)
71
71
-`make test-fast` — excludes tests marked `@pytest.mark.slow` for quicker iteration
72
+
-`make test-smoke` — builds the package, installs it into a clean environment, and verifies that imports plus basic quantization and palettization work end to end
72
73
73
74
A clean `make check` and `make test` are required before a pull request will be reviewed.
@@ -78,3 +79,7 @@ These principles are working when:
78
79
- Diffs contain fewer unrelated changes.
79
80
- Fewer rewrites stem from overcomplication.
80
81
- Clarifying questions arrive before mistakes, not after.
82
+
83
+
## References
84
+
85
+
The principles above are adapted from Andrej Karpathy's coding guidance, via the [andrej-karpathy-skills](https://github.com/multica-ai/andrej-karpathy-skills) project (MIT License).
0 commit comments