wobbling-ty-constraint-order
Skill50k starsChanged 2 months agoMITView on GitHub
Use when a user asks to wobble ty constraint ordering, check constraint-set or TDD ordering determinism, test reversed constraint/typevar IDs, or investigate nondeterministic ty inference and mdtest results.
Trending
More talk lately.about the whole repository
Who's talking about astral-sh/ruff
- A Hacker News story“Ruff: Python linter and code formatter written in Rust”Hacker News · Jan 21, 2025 · 200 points
- astral-sh/ty“Reimplement popular Mypy Plugins”GitHub · May 9, 2025 · 55 reactions
- astral-sh/ty“Code completion”GitHub · Mar 14, 2025 · 47 reactions
- astral-sh/ty“Advanced `TypedDict` support”GitHub · Mar 26, 2025 · 43 reactions
- astral-sh/ty“LSP: Support Workspace folders”GitHub · Aug 22, 2024 · 42 reactions
The biggest 5 of 80 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 80
Talked about on Bluesky, GitHub and Hacker News (80 times).
On Bluesky · 50
- Nov 24, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★33024 https://github.com/astral-sh/ruff — @rusttrending.bsky.social10 likes and reposts
- Mar 1, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★36260 https://github.com/astral-sh/ruff — @rusttrending.bsky.social4 likes and reposts
- Mar 26, 2024like the other comments, my ide highlights or adds red squigglies when there's a typing mismatch. the drop-in typing is nice. also +1 for… — @jcsalterego.bsky.social4 likes and reposts · 1 reply
- Jun 6, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★47839 https://github.com/astral-sh/ruff — @rusttrending.bsky.social3 likes and reposts
- Mar 20, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★46503 https://github.com/astral-sh/ruff — @rusttrending.bsky.social3 likes and reposts
45 more on Bluesky
- Jan 31, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★35110 https://github.com/astral-sh/ruff — @rusttrending.bsky.social3 likes and reposts
- Jun 11, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★27927 https://github.com/astral-sh/ruff — @rusttrending.bsky.social3 likes and reposts
- Mar 28, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★25477 https://github.com/astral-sh/ruff — @rusttrending.bsky.social3 likes and reposts
- Feb 9, 2024Ruff is great! So what if it's written in Rust? I mean, PyCharm is written in Java, and as long as it's not written in JavaScript, I… — @clairem.secondlife.bio3 likes and reposts · 1 reply
- Aug 8, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★49106 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Jul 4, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★48418 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Aug 14, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★41594 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Jul 8, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★40635 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Jan 18, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★34595 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Dec 7, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★33441 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Nov 28, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★33179 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Nov 9, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★32582 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Oct 16, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★31868 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Sep 22, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★31163 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Aug 18, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★29920 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Aug 4, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★29586 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Jul 11, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★28900 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Apr 26, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★26574 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Apr 3, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★25746 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Jan 3, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★21798 https://github.com/astral-sh/ruff — @rusttrending.bsky.social2 likes and reposts
- Nov 6, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 astral-sh / ruff ⭐ 50,486 (+107) 🗒 Rust An extremely fast Python linter and code formatter, written in… — @github-trending.bsky.social1 likes and repost
- Nov 6, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 astral-sh / ruff ⭐ 50,486 (+107) 🗒 Rust An extremely fast Python linter and code formatter, written in… — @github-trending-rs.bsky.social1 likes and repost
- Sep 23, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★49734 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jul 20, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★48699 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jan 6, 2026astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★44968 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Dec 20, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★44557 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Oct 25, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★43303 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Oct 2, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★42776 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Sep 6, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★42246 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jul 22, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★40970 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jun 17, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★40085 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jun 1, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★39601 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- May 13, 2025if by "rough" you mean astral's other project github.com/astral-sh/ruff, then no it wouldn't replace that - ruff is a linter/formatter, ty… — @spacegirl.ing1 likes and repost
- May 8, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★38551 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Apr 5, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★37505 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jan 21, 2025Ruff: Python linter and code formatter written in Rust Discussion — @hackernewsbot.bsky.social1 likes and repost
- Jan 10, 2025astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★34408 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Oct 10, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★31667 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Aug 21, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★30006 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Aug 18, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★29926 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Jun 7, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★27788 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Apr 27, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★26589 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Apr 25, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★26508 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Apr 24, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★26497 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
- Apr 21, 2024astral-sh / ruff: An extremely fast Python linter and code formatter, written in Rust. ★26349 https://github.com/astral-sh/ruff — @rusttrending.bsky.social1 likes and repost
On GitHub · 23
- May 9, 2025Reimplement popular Mypy Plugins — astral-sh/ty55 reactions · 13 comments
- Mar 14, 2025Code completion — astral-sh/ty47 reactions · 11 comments
- Mar 26, 2025Advanced `TypedDict` support — astral-sh/ty43 reactions · 20 comments
- Aug 22, 2024LSP: Support Workspace folders — astral-sh/ty42 reactions · 2 comments
- May 7, 2025Support starred/splatted/unpacked arguments in function calls — astral-sh/ty36 reactions · 15 comments
18 more on GitHub
- Mar 21, 2025Support narrowing on attribute and subscript expressions — astral-sh/ty29 reactions · 17 comments
- Feb 26, 2026Lags after the last update — zed-industries/zed27 reactions · 29 comments
- Apr 28, 2025Advanced dataclass support — astral-sh/ty17 reactions · 15 comments
- Aug 1, 2025Add an experimental `uv format` command — astral-sh/uv14 reactions · 4 comments
- Apr 24, 2026Ruff depth limit — pydantic/monty11 reactions · 3 comments
- Oct 17, 2023Fix: Ruff output option — dense-analysis/ale11 reactions · 11 comments
- Apr 19, 2024refactor: use ruff as the server — sublimelsp/LSP-ruff7 reactions · 9 comments
- Oct 5, 2023Add support for Jupyter Notebook — astral-sh/ruff-lsp6 reactions · 8 comments
- Mar 14, 2025fix: use proper version comparison to support installation of ruff 0.10.x — simhem/asdf-ruff5 reactions · 7 comments
- Jun 2, 2026deps(pip): update ruff requirement from >=0.15.11 to >=0.15.15 — hashgraph-online/hol-guard4 reactions · 2 comments
- Jul 26, 2025Add unified hook for running format and check in a single step — astral-sh/ruff-pre-commit4 reactions · 3 comments
- Feb 29, 2024ruff: 0.2.2 -> 0.3.0 — NixOS/nixpkgs4 reactions · 12 comments
- Jun 11, 2023Implement round-trip fuzzers for finding correctness bugs — rome/tools4 reactions · 20 comments
- Nov 11, 2026chore(deps-dev): bump ruff from 0.17.1 to 0.17.4 — rmems/agoge-forger3 reactions · 6 comments
- Oct 14, 2026chore(deps-dev): bump ruff from 0.16.10 to 0.17.0 — rmems/agoge-forger3 reactions · 5 comments
- Oct 7, 2026chore(deps-dev): bump ruff from 0.16.8 to 0.16.10 — rmems/agoge-forger3 reactions · 5 comments
- Apr 9, 2026chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.16.4 — MH0386/MH0386.github.io3 reactions · 31 comments
- Oct 15, 2025requirements: bump ruff from 0.11.13 to 0.14.0 — buildbot/buildbot0 reactions
On Hacker News · 7
- Jan 21, 2025Ruff: Python linter and code formatter written in Rust200 points · 150 comments
- May 21, 2026Avoid unnecessary parser lookahead for operators3 points
- Dec 3, 2023Ruff: fast Python linter and code formatter, written in Rust3 points
- Sep 25, 2025We adopt an approach I'll call "Thanks I Hate It (TIHI)"2 points
- Nov 27, 2023Ruff: An fast Python linter and code formatter, written in Rust2 points
2 more on Hacker News
- Oct 24, 2023Ruff v0.122 points · 1 comment
- Jan 26, 2024An fast Python linter and code formatter, written in Rust1 point
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adding-ty-diagnosticsSkill
- minimizing-ty-ecosystem-changesSkill
- summarise-ecosystem-resultsSkill
The file
Files
Wobbling ty constraint order
TY_CONSTRAINT_SET_ORDER perturbs both the builder-local TDD-variable order and the local typevar order used to orient typevar-to-typevar constraints. The setting is fixed for the lifetime of each test process.
- unset/
0: normal ordering; reverse: reverse both orderings;- an integer: XOR each local ID with that mask. Small masks immediately perturb dense arena IDs:
1swaps adjacent IDs,3reverses blocks of four, and powers of two exchange neighboring blocks.
This deliberately changes internal TDD shape. Run mdtests only: graph-structure unit snapshots are expected to differ. Never enable snapshot updates for a wobble run, since updating would hide the failures being sought.
Run
From the Ruff root, first establish the normal baseline, then run the reversed and XOR-masked orders sequentially. Set TY_CONSTRAINT_ORDER_LOG_DIR to retain logs in a particular writable directory; otherwise mktemp chooses an appropriate temporary directory (respecting the environment's temporary-directory configuration).
set -u
if test -n "${TY_CONSTRAINT_ORDER_LOG_DIR:-}"; then
log_dir="$TY_CONSTRAINT_ORDER_LOG_DIR"
mkdir -p "$log_dir"
else
log_dir="$(mktemp -d -t ty-constraint-order.XXXXXXXX)"
fi
printf '%s\n' "logs: $log_dir"
if cargo nextest --version >/dev/null 2>&1; then
runner=nextest
else
runner=test
fi
printf '%s\n' "runner: cargo $runner"
export CARGO_PROFILE_DEV_OPT_LEVEL=1
export CARGO_PROFILE_DEV_DEBUG=line-tables-only
export INSTA_UPDATE=no
export MDTEST_UPDATE_SNAPSHOTS=0
unset INSTA_FORCE_PASS || true
for order in normal reverse 1 2 3 4 7 8 15; do
if test "$order" = normal; then
unset TY_CONSTRAINT_SET_ORDER || true
else
export TY_CONSTRAINT_SET_ORDER="$order"
fi
log="$log_dir/ty-constraint-order-${order}.log"
if test "$runner" = nextest; then
cargo nextest run -p ty_python_semantic --test mdtest \
--no-fail-fast --status-level fail --failure-output immediate-final \
>"$log" 2>&1
else
cargo test -p ty_python_semantic --test mdtest >"$log" 2>&1
fi
status=$?
printf '%-7s exit=%s\n' "$order" "$status"
grep -E 'Summary \[|test result:' "$log" | tail -1 || true
printf '%s\n' " log: $log"
doneRead each failing log and report the mdtest file, section, line, expected result, and actual diagnostic/revealed type. A wobble failure is evidence that inference semantics or displayed solution types still depend on ordering; do not update the mdtest expectations merely to make the wobble run green.
The knob does not perturb hashing of Salsa-backed values. The Solution binding order follows constraint source order section of regression/constraint_set_ordering.md separately varies typevar declaration order to catch binding-order changes caused by draining an FxHashMap<BoundTypeVarInstance, ...>.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

