Skip to content

Comments

Dogfood ty on the scripts directory#21617

Merged
AlexWaygood merged 1 commit intomainfrom
alex/dogfood-ty
Nov 24, 2025
Merged

Dogfood ty on the scripts directory#21617
AlexWaygood merged 1 commit intomainfrom
alex/dogfood-ty

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Nov 24, 2025

Summary

This PR sets up CI jobs to run ty from the main branch on the files and subdirectories in our scripts directory

Test Plan

Both these commands pass for me locally:

  • uv run --project=./scripts cargo run -p ty check --project=./scripts
  • uv run --project=./scripts/ty_benchmark cargo run -p ty check --project=./scripts/ty_benchmark

@AlexWaygood AlexWaygood added ci Related to internal CI tooling ty Multi-file analysis & type inference labels Nov 24, 2025
@astral-sh-bot
Copy link

astral-sh-bot bot commented Nov 24, 2025

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.

Comment on lines 45 to 48
if number > 100000:
number = str(number)
number: str = str(number)
number = "_".join(number[i : i + 3] for i in range(0, len(number), 3))
return f"{number}_u32"
Copy link
Member Author

Choose a reason for hiding this comment

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

a nice little use of our feature where we allow redeclarations :-)

@AlexWaygood AlexWaygood marked this pull request as ready for review November 24, 2025 18:17
@AlexWaygood AlexWaygood merged commit bfd65c4 into main Nov 24, 2025
38 checks passed
@AlexWaygood AlexWaygood deleted the alex/dogfood-ty branch November 24, 2025 23:13
carljm added a commit to mtshiba/ruff that referenced this pull request Nov 25, 2025
* main:
  [ty] Extend Liskov checks to also cover classmethods and staticmethods (astral-sh#21598)
  Dogfood ty on the `scripts` directory (astral-sh#21617)
  [ty] support generic aliases in `type[...]`, like `type[C[int]]` (astral-sh#21552)
  [ty] Retain the function-like-ness of `Callable` types when binding `self` (astral-sh#21614)
  [ty] Distinguish "unconstrained" from "constrained to any type" (astral-sh#21539)
  Disable ty workspace diagnostics for VSCode users (astral-sh#21620)
  [ty] Double click to insert inlay hint (astral-sh#21600)
  [ty] Switch the error code from `unresolved-attribute` to `possibly-missing-attribute` for submodules that may not be available (astral-sh#21618)
  [ty] Substitute for `typing.Self` when checking protocol members (astral-sh#21569)
  [ty] Don't suggest things that aren't subclasses of `BaseException` after `raise`
  [ty] Add hint about resolved Python version when a user attempts to import a member added on a newer version (astral-sh#21615)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants