Skip to content

[ty] Dogfood standalone scripts with inline configuration - #27885

Merged
AlexWaygood merged 1 commit into
mainfrom
alex/dogfood-ty-pep723-scripts
Aug 19, 2026
Merged

AlexWaygood merged 1 commit into
mainfrom
alex/dogfood-ty-pep723-scripts

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

Summary

  • Move ty configuration into every PEP 723 script and remove the obsolete scripts/ty.toml.
  • Fix diagnostics surfaced by the stricter script settings, including missing type arguments and unsound return values.
  • Check every script in CI with the ty binary built from the current Ruff checkout and the script's own locked Python environment.

@AlexWaygood AlexWaygood added the ty The ty type checker label Aug 19, 2026 — with ChatGPT Codex Connector
@astral-sh-bot

astral-sh-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 97.68%. The percentage of expected errors that received a diagnostic held steady at 93.44%. The number of fully passing files held steady at 109/136.

@AlexWaygood AlexWaygood added the internal An internal refactor or improvement (not for changelogs) label Aug 19, 2026
@astral-sh-bot

astral-sh-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

Comment thread .github/workflows/ci.yaml
Comment on lines +393 to +399
- name: Dogfood ty on scripts
run: |
for script in scripts/*.py; do
echo "Checking $script"
uv sync --quiet --locked --script "$script"
cargo run --quiet -p ty check "$script" --python "$(uv python find --script "$script")" --color=always
done

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we removed the previous dogfooding CI step we had in 7ed8d1f, when we deleted scripts/pyproject.toml. I know @MichaReiser is working on something that should allow us soon to get rid of this loop, but I don't think it's landed yet

@AlexWaygood
AlexWaygood marked this pull request as ready for review August 19, 2026 14:39
Comment thread scripts/build_ruff_pgo.py
Comment on lines +8 to +14
# blanket-ignore-comment = "warn"
# missing-type-argument = "warn"
# possibly-unresolved-reference = "warn"
# unsound-return-statement = "warn"
# unsound-yield = "warn"
# unsupported-dynamic-base = "warn"
# division-by-zero = "warn"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my, we need categories

@MichaReiser MichaReiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust your Python

@astral-sh-bot

astral-sh-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@AlexWaygood
AlexWaygood merged commit b33f21d into main Aug 19, 2026
75 of 77 checks passed
@AlexWaygood
AlexWaygood deleted the alex/dogfood-ty-pep723-scripts branch August 19, 2026 14:55
carljm added a commit that referenced this pull request Aug 19, 2026
…ype-form

* origin/main:
  [ty] Fix dynamic-class diagnostic snapshot in string annotations (#27890)
  Lock `wrangler` for playground deployments (#27838)
  [ty] Dogfood standalone scripts with inline configuration (#27885)
  Annotate intentional release secret inheritance (#27887)
  [ty] Skip invalid subscript operands in string annotations (#27882)
  [ty] Handle dynamic classes in string annotations (#27883)
  Disable `npm` install scripts by default (#27837)
  Require wheels for Python tooling dependencies (#27861)
  Update dependency pytest to v9 (#27881)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement (not for changelogs) ty The ty type checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants