Skip to main content

type checker agnostic parallel type checking tool

Project description

typsht

type checker agnostic parallel type checking tool. run multiple python type checkers (mypy, pyright, ty, pyre) in parallel on the same code.

inspired by tox, but specifically for type checkers. get comprehensive type checking coverage by running multiple type checkers simultaneously.

installation

quick start (no installation)

use uvx to run typsht without installing it:

# check inline code
uvx typsht 'def foo(x: int) -> str: return x'

# check a file
uvx typsht --file my_module.py

install to your project

uv add typsht

usage

check inline code:

# this will catch the type error across all checkers
typsht 'def foo(x: int) -> str: return x'

check a file:

typsht --file my_module.py

run specific type checkers:

typsht --file my_module.py --checkers mypy --checkers ty

show detailed output from each checker:

typsht --file my_module.py --verbose

supported type checkers

by default, typsht runs:

  • mypy - widely adopted static type checker
  • pyright - fast static type checker from microsoft
  • ty - experimental blazing-fast type checker

also available (requires project configuration):

  • pyre - facebook's type checker (requires .pyre_configuration)

development

install dependencies:

uv sync

run tests:

uv run pytest

install pre-commit hooks:

uv run pre-commit install

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

typsht-0.0.1a1.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

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

typsht-0.0.1a1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file typsht-0.0.1a1.tar.gz.

File metadata

  • Download URL: typsht-0.0.1a1.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for typsht-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 cc8e8c5dd03f40cc5524507b33eaf01f56fc3122ca3c22927ba5d175d961b104
MD5 c14d06dc97b21c8965390310e14883ed
BLAKE2b-256 894992a34936ec6fe641417c6f0e7c954c227276cfd6877560d9c1f149ef4db3

See more details on using hashes here.

File details

Details for the file typsht-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: typsht-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for typsht-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9b035d89d92b901193b9d293a44002546c2e046f66e5f6bc4e190ea8c882ca0
MD5 2b100b68399f3303a7ad8d602ec91621
BLAKE2b-256 a78bcb6a75a686295d81d9631f9eb3733323edefb7682844554579f0d1176f1e

See more details on using hashes here.

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