mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-25 02:55:35 +08:00
## 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.
24 lines
561 B
TOML
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"
|