Metadata-Version: 2.4
Name: ty-extended
Version: 0.87.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: ty>=0.0.84,<0.1
License-File: LICENSE
Summary: A Monty plugin companion for unchanged official ty.
Keywords: ty,typing,analysis,check,plugins
Author-email: Kevin Castro <hola@kev.pe>
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/regularkevvv/ty-extended/blob/main/CHANGELOG.md
Project-URL: Releases, https://github.com/regularkevvv/ty-extended/releases
Project-URL: Repository, https://github.com/regularkevvv/ty-extended

# ty-extended

[![PyPI](https://img.shields.io/pypi/v/ty-extended.svg)](https://pypi.org/project/ty-extended/)

A Monty plugin companion for [Astral's ty](https://github.com/astral-sh/ty).
It runs plugins in embedded Monty and delegates checking to a separately installed,
unchanged official ty. **The companion is not a fork of ty.**

```shell
uv add --dev ty-extended
uv run ty-extended check
```

For an isolated run:

```shell
uvx ty-extended check
```

The package depends on official `ty`. Its executable and Python package use the
separate names `ty-extended` and `ty_extended`; `ty` continues to run Astral's checker.
Configure your editor to start `ty-extended server` for plugin support.

## Official ty compatibility

Companion versions are independent of official ty starting with 0.87.0. The same
companion has passed the complete compatibility suite against **every ty release
from 0.0.84 through 0.0.99** (16 releases), including Django CLI and editor checks.
Updating official ty within a compatible group does not require a companion release.
See [the compatibility policy and evidence](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/compatibility.md) for the tested
versions, dependency range and checks for future releases.

## Monty plugins

Python plugins use the bundled `ty_extended.plugin_sdk` and execute inside Monty.
No separate Python plugin interpreter or worker package is needed.

```toml
# ty.toml
[plugins]
auto-discover = true
```

The companion analyzes temporary copies and translates diagnostics, editor positions,
and safe edits back to original files. The editor keeps its checker and plugin state
between edits and supports unsaved buffers, notebooks and multiple workspaces.

```mermaid
flowchart LR
    project[Python project] --> companion[ty-extended companion]
    editor[CLI or editor] <--> companion
    companion <--> monty[Embedded Monty plugins]
    companion <-->|Analysis copies and public LSP| ty[Unchanged official ty]
```

[`django-ty`](https://github.com/regularkevvv/django-ty) provides Django ORM support.
See [installation and migration](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/installation.md), [compatibility](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/compatibility.md),
[editor setup](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/editors.md), [plugin authoring](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/plugin-authoring.md),
and [runtime behavior](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/plugin-runtime.md).

## Version policy

Starting with 0.87.0, companion versions are independent of ty versions. A companion
release supports a group of official ty versions; ordinary ty updates do not require
rebuilding or republishing the companion. The [compatibility policy](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/compatibility.md)
distinguishes tested releases from the dependency range and future upstream changes.

Versions through 0.86.x shipped a modified checker and installed the `ty` command.
See the [migration instructions](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/docs/installation.md#migrating-from-the-old-distribution)
before replacing that package. WASM plugins and Monty worker mode belong to those
historical releases; the companion runs embedded Monty plugins.

## Contributing and license

The companion lives in [`companion/`](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/companion/README.md). See
[contributing](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/CONTRIBUTING.md), [validation evidence](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/companion/STATUS.md), and
[the changelog](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/CHANGELOG.md). Report companion or plugin issues in this repository.

MIT ([LICENSE](https://github.com/regularkevvv/ty-extended/blob/v0.87.0/LICENSE)). Astral's checker is developed and released by Astral.

