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 openpyxl
addsopenpyxl
to your projectpoetry types update
addstypes-openpyxl
ifopenpyxl
is present, buttypes-openpyxl
is notpoetry types update
removestypes-openpyxl
iftypes-openpyxl
is present, butopenpyxl
is not
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.5.1
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.5.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file poetry_types-0.5.1.tar.gz
.
File metadata
- Download URL: poetry_types-0.5.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 881f8f22fd2eda4ca765b872ee412945bc5aef649d0f6d6f54052bf5f733b790 |
|
MD5 | 5232dbfc1553feb2971e6cd81182db93 |
|
BLAKE2b-256 | 67918873289ca0eb9523c22a870db1c95e66989c747c034f1428c736a1ebd244 |
File details
Details for the file poetry_types-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: poetry_types-0.5.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e6db8e29de5b8dc19006820a547fcd2de07f907130ea39c213eef3173d79719 |
|
MD5 | df22c2cab689ada5ccc10ce14c073009 |
|
BLAKE2b-256 | 02a5a02ad129f0ff7a420d7aab377ac01333b892fa59f396f2d6a06232cc37f8 |