A poetry plugin that adds/removes type stubs as dependencies like the mypy --install-types command.
Project description
poetry-types
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
addstypes-SQLAlchemy
to your projectpoetry types update
addstypes-SQLAlchemy
ifSQLAlchemy
is present, but nottypes-SQLAlchemy
poetry types update
removestypes-SQLAlchemy
iftypes-SQLAlchemy
is present, but notSQLAlchemy
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
- repo: https://github.com/jvllmr/poetry-types
rev: v0.4.0
hooks:
- id: poetry-types
poetry-types has to be skipped with pre-commit.ci
ci:
skip: [poetry-types]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poetry_types-0.4.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for poetry_types-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d694a124880a91220c87d26e6c493b05972144a8b57ef9cabd42d8346e1aa55 |
|
MD5 | 471e6038e83f13eca659bd2bc85885d5 |
|
BLAKE2b-256 | b66d6bd6e969497702d2a433cf42100eb07de9a15c935b56ebd6a4678e8efc0e |