Skip to main content

A poetry plugin that adds/removes type stubs as dependencies like the mypy --install-types command.

Project description

poetry-types

PyPI version GitHub license GitHub issues PyPI - Downloads Tests

Description

This is a poetry plugin that installs/removes/updates typing stubs via following commands:

  • poetry types add <package names>
  • poetry types remove <package names>
  • poetry types update <package names>

Added packages will be added to the types group.

Usage examples

  • poetry types add openpyxl adds openpyxl to your project
  • poetry types update adds types-openpyxl if openpyxl is present, but types-openpyxl is not
  • poetry types update removes types-openpyxl if types-openpyxl is present, but openpyxl 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.6.2
  hooks:
    - id: poetry-types

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

ci:
  skip: [poetry-types]

Project details


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.6.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry_types-0.6.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file poetry_types-0.6.2.tar.gz.

File metadata

  • Download URL: poetry_types-0.6.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for poetry_types-0.6.2.tar.gz
Algorithm Hash digest
SHA256 92666810d58b559c6eaafe04666caedda2f938d066cf82fca9c006d3758a721f
MD5 9f3c4d07ce79ed4a5bfbc2aa5a666fb1
BLAKE2b-256 f56cb8d1ff70965adf07281f64f9279ef35f50dc5e40fb1dc8f590d66e459533

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_types-0.6.2.tar.gz:

Publisher: python-publish.yml on jvllmr/poetry-types

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file poetry_types-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: poetry_types-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for poetry_types-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae3b80640d865c78283dc569d274ca701dc154856091aa5abe284e596c19e2ff
MD5 911924b5ad637e70474da671c4a3e9f7
BLAKE2b-256 bd5f9891c45b4c65ea349d52ce99ccee518a3e50995c9cf80c5d59adfd47f91c

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_types-0.6.2-py3-none-any.whl:

Publisher: python-publish.yml on jvllmr/poetry-types

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page