Skip to content

Commit d0f51c6

Browse files
Remove remaining ruff_shrinking references (#11272)
## Summary This caused `rooster release` to fail. Initially removed in #11242.
1 parent 8dd3811 commit d0f51c6

File tree

4 files changed

+0
-92
lines changed

4 files changed

+0
-92
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
- "!crates/ruff_python_formatter/**"
6060
- "!crates/ruff_formatter/**"
6161
- "!crates/ruff_dev/**"
62-
- "!crates/ruff_shrinking/**"
6362
- scripts/*
6463
- python/**
6564
- .github/workflows/ci.yaml

crates/ruff_python_formatter/CONTRIBUTING.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,6 @@ python scripts/check_ecosystem.py --checkouts target/checkouts --projects github
133133
cargo run --bin ruff_dev -- format-dev --stability-check --error-file target/formatter-ecosystem-errors.txt --multi-project target/checkouts
134134
```
135135

136-
**Shrinking** To shrink a formatter error from an entire file to a minimal reproducible example,
137-
you can use `ruff_shrinking`:
138-
139-
```shell
140-
cargo run --bin ruff_shrinking -- <your_file> target/shrinking.py "Unstable formatting" "target/debug/ruff_dev format-dev --stability-check target/shrinking.py"
141-
```
142-
143-
The first argument is the input file, the second is the output file where the candidates
144-
and the eventual minimized version will be written to. The third argument is a regex matching the
145-
error message, e.g. "Unstable formatting" or "Formatter error". The last argument is the command
146-
with the error, e.g. running the stability check on the candidate file. The script will try various
147-
strategies to remove parts of the code. If the output of the command still matches, it will use that
148-
slightly smaller code as starting point for the next iteration, otherwise it will revert and try
149-
a different strategy until all strategies are exhausted.
150-
151136
## Helper structs
152137

153138
To abstract formatting something into a helper, create a new struct with the data you want to

crates/ruff_python_formatter/shrink_formatter_errors.py

Lines changed: 0 additions & 75 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,5 @@ version_files = [
106106
"docs/integrations.md",
107107
"crates/ruff/Cargo.toml",
108108
"crates/ruff_linter/Cargo.toml",
109-
"crates/ruff_shrinking/Cargo.toml",
110109
"scripts/benchmarks/pyproject.toml",
111110
]

0 commit comments

Comments
 (0)