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.1.post1.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.1.post1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file poetry_types-0.6.1.post1.tar.gz.

File metadata

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

File hashes

Hashes for poetry_types-0.6.1.post1.tar.gz
Algorithm Hash digest
SHA256 20fca343526c2be0ccac06a51644f68af371a826750914b9bab173595362a434
MD5 750ce50c88c362bf119222912dd7b6cf
BLAKE2b-256 d50fa6a55d6924b94c093f59fa3aaf56cf9a917563c042a215e3e58c7ea6a035

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for poetry_types-0.6.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 a20238da0d3addd322ba47d36f531f80df1655e026fd1af4bfd82491c65d755c
MD5 eca967c6bc025229d4fd163ed43a2cbb
BLAKE2b-256 6834ca30e92d23cc936a95becfaac27998ce0b5e776ffdcfcb0f2bbbb1e877d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_types-0.6.1.post1-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