Skip to main content

Run PyRight and enforce minimum type coverage

Project description

pyright-cov

Enforce minimum type coverage!

pyright-cov is a tool which you can use to enforce minimum type coverage in your projects.

Installation

pip install pyright-cov

Usage

In a virtual environment in which you have a local install of a library foo, you can ensure that foo is type-complete with:

pyright-cov --verifytypes foo --ignoreexternal

This will fail (i.e. exit 1) if your type coverage is less than 100%. To set a lower threshold, such as 60%:

pyright-cov --verifytypes foo --ignoreexternal --fail-under 60

Additional command-line flags are passed to PyRight.

Testing

Make sure you have uv and pytest installed. Then, run:

pytest tests

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

pyright_cov-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pyright_cov-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pyright_cov-0.1.1.tar.gz.

File metadata

  • Download URL: pyright_cov-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyright_cov-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d77930bbd34e93417254fab5e9e5352ba44e63efa3afa453bfdf03742c6c78e9
MD5 30df8f77b265179cb4298650222c317f
BLAKE2b-256 285407ddcbe8d11014a63200ad1a4c5e4d40257a6e840db3662e74dba64e0deb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_cov-0.1.1.tar.gz:

Publisher: publish_to_pypi.yml on MarcoGorelli/pyright-cov

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

File details

Details for the file pyright_cov-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyright_cov-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyright_cov-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c543ec199f985a960f98741070c9657a3655e479e9f1f44e6c3dc6048faeaf68
MD5 2bc430276d4f972eee23211c08114fa7
BLAKE2b-256 6d3e3ccc65ef5a161c2aa69efbd5d6c37f7e4496951a2b56f3397853bee8eab6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_cov-0.1.1-py3-none-any.whl:

Publisher: publish_to_pypi.yml on MarcoGorelli/pyright-cov

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