mirror of
https://github.com/astral-sh/ty.git
synced 2025-08-04 08:58:28 +00:00

Splits each top-level heading of the existing documentation into a dedicated page as a starting point. --------- Co-authored-by: David Peter <mail@david-peter.de>
41 lines
603 B
Markdown
41 lines
603 B
Markdown
# Installing ty
|
|
|
|
## Adding ty to your project
|
|
|
|
Use [uv](https://github.com/astral-sh/uv) (or your project manager of choice) to add ty as a
|
|
development dependency:
|
|
|
|
```shell
|
|
uv add --dev ty
|
|
```
|
|
|
|
Adding ty as a dependency ensures that all developers on the project are using the same version of
|
|
ty.
|
|
|
|
Then, use `uv run` to invoke ty:
|
|
|
|
```shell
|
|
uv run ty
|
|
```
|
|
|
|
## Installing globally
|
|
|
|
Install ty globally with uv:
|
|
|
|
```shell
|
|
uv tool install ty@latest
|
|
```
|
|
|
|
Or, pipx:
|
|
|
|
```shell
|
|
pipx install ty
|
|
```
|
|
|
|
## Installing with pip
|
|
|
|
Install ty into your current Python environment with pip:
|
|
|
|
```shell
|
|
pip install ty
|
|
```
|