Files
ruff/scripts/pyproject.toml
T
Carl Meyer 20a17411b2 [ty] add scripts/setup_primer_project.py (#23195)
## Summary

`uv run scripts/setup_primer_project.py <projname> <directory>` will
clone the mypy-primer project `<projname>` to `<directory>` and then
install it and its dependencies (in the way defined by mypy-primer) into
`.venv` in that directory, setting it up for easy reproduction of the
primer results.

Also added instructions to `CLAUDE.md` so Claude will use this script
when reproducing ecosystem results. This can short-circuit a lot of "it
doesn't reproduce! oh I didn't install the dependencies" churn.

## Test Plan

`uv run scripts/setup_primer_project.py artigraph /tmp/artigraph` set
things up such that I was able to just run two versions of ty in
`/tmp/artigraph` and quickly repro an ecosystem diff from CI.
2026-02-09 20:10:16 -08:00

24 lines
561 B
TOML

[project]
name = "scripts"
version = "0.0.1"
dependencies = ["stdlibs", "tqdm", "mdformat", "pyyaml", "mypy-primer"]
requires-python = ">=3.12"
[tool.black]
line-length = 88
[tool.ruff]
extend = "../pyproject.toml"
[tool.ty.src]
# `ty_benchmark` is a standalone project with its own pyproject.toml files, search paths, etc.
exclude = ["./ty_benchmark"]
[tool.uv.sources]
mypy-primer = { git = "https://github.com/hauntsaninja/mypy_primer" }
[tool.ty.rules]
possibly-unresolved-reference = "error"
division-by-zero = "error"
unused-ignore-comment = "error"