ruff/crates/ty
InSync a33d0d4bf4
[ty] Support `generate-shell-completion` (#17879)
## Summary

Resolves #15502.

`ty generate-shell-completion` now works in a similar manner to `ruff
generate-shell-completion`.

## Test Plan

Manually:

<details>

```shell
$ cargo run --package ty generate-shell-completion nushell
module completions {

  # An extremely fast Python type checker.
  export extern ty [
    --help(-h)                # Print help
    --version(-V)             # Print version
  ]
  
  # ...

}

export use completions *
```
</details>
2025-05-06 18:04:57 -07:00
..
docs [ty] Minor typo in environment variable name (#17848) 2025-05-05 10:25:48 +00:00
src [ty] Support `generate-shell-completion` (#17879) 2025-05-06 18:04:57 -07:00
tests Add a note to diagnostics why the rule is enabled (#17854) 2025-05-06 20:29:03 +02:00
Cargo.toml [ty] Support `generate-shell-completion` (#17879) 2025-05-06 18:04:57 -07:00
README.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
build.rs Parse `dist-workspace.toml` for version (#17868) 2025-05-06 12:18:17 +00:00

README.md

ty

ty is an extremely fast type checker. Currently, it is a work-in-progress and not ready for user testing.

ty is designed to prioritize good type inference, even in unannotated code, and aims to avoid false positives.

While ty will produce similar results to mypy and pyright on many codebases, 100% compatibility with these tools is a non-goal. On some codebases, ty's design decisions lead to different outcomes than you would get from running one of these more established tools.

Contributing

Core type checking tests are written as Markdown code blocks. They can be found in ty_python_semantic/resources/mdtest. See ty_test/README.md for more information on the test framework itself.

The list of open issues can be found here.