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

Uploaded Source

Built Distribution

poetry_types-0.6.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poetry_types-0.6.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for poetry_types-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d6fe3f7df270bdaf2c3bf50b46927a2b93c1c071c72a4e8877b4588e54140367
MD5 da9ccbdd30f53c88b33e781d5593bdf5
BLAKE2b-256 ffd544600b307dfdbf792c5226c3e5543271941bef44f07e47212cb3bc987fca

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_types-0.6.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: poetry_types-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for poetry_types-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a736352dec34a846127b2b3c4a4bd20d2f1707e18335f692cef156cef452e018
MD5 65fe091e24f6c21c8ff792841e939826
BLAKE2b-256 ebd63be6f050ddf71098ad7421fe88b108c3da48e5ae6b4038804735a8ea2dea

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_types-0.6.0-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page