Metadata-Version: 2.1
Name: poetry-types
Version: 0.3.4
Summary: A poetry plugin that adds/removes type stubs as dependencies like the mypy --install-types command.
Home-page: https://github.com/jvllmr/poetry-types
License: MIT
Author: Jan Vollmer
Author-email: jan@vllmr.dev
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: packaging (>=21.3,<22.0)
Requires-Dist: poetry (>=1.2,<2.0)
Requires-Dist: tomlkit (>=0.11.4,<0.12.0)
Project-URL: Repository, https://github.com/jvllmr/poetry-types
Description-Content-Type: text/markdown

# poetry-types

[![PyPI version](https://badge.fury.io/py/poetry-types.svg)](https://badge.fury.io/py/poetry-types)
[![GitHub license](https://img.shields.io/github/license/jvllmr/poetry-types)](https://github.com/jvllmr/poetry-types/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/jvllmr/poetry-types)](https://github.com/jvllmr/poetry-types/issues)
![PyPI - Downloads](https://img.shields.io/pypi/dd/poetry-types)
![Tests](https://github.com/jvllmr/poetry-types/actions/workflows/main.yml/badge.svg)

## Description

This is a plugin to poetry for the upcoming poetry 1.2 plugin feature.
It installs/removes/updates typing stubs via following commands:

- `poetry types add <package names>`
- `poetry types remove <package names>`
- `poetry types update <package names>`

## Usage examples

- `poetry types add SQLAlchemy` adds `types-SQLAlchemy` to your project
- `poetry types update` adds `types-SQLAlchemy` if `SQLAlchemy` is present, but not `types-SQLAlchemy`
- `poetry types update` removes `types-SQLAlchemy` if `types-SQLAlchemy` is present, but not `SQLAlchemy`

## Installation

Run `poetry self add poetry-types` for global install or run `poetry add -D poetry-types` to use this plugin with your project.

## Usage with pre-commit

```yaml
- repo: https://github.com/jvllmr/poetry-types
  rev: v0.3.3
  hooks:
    - id: poetry-types
```

### poetry-types has to be skipped with pre-commit.ci

```yaml
ci:
  skip: [poetry-types]
```

