Skip to main content

Validator for type annotations

Project description

iStub

Validator for type annotations.

Usage

Basic usage

Let's assume that you want to check mylib-stubs package against mylib

Create a file istub.yml in your project root:

packages:
  - name: mylib
    path: ./mylib-stubs
    checks:
      mypy: true
      stubtest: true

Run checker:

python -m istub

You can create a whitelist of acceptable errors:

python -m istub --update

Custom configuration

packages:
  - name: mylib
    path: ./mylib-stubs
    checks:
      mypy: true
      stubtest: true
      flake8: false
      pyright: false
      ruff: false
    pip_install:
      - pypi_dependency
      - pypi_dependency2
    pip_uninstall:
      - dependency_to_uninstall
    build:
      - ./build_cmd.sh

Latest changes

Full changelog can be found in Releases.

Versioning

istub version follows PEP 440 format.

Support and contributing

Please reports any bugs or request new features in istub repository.

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

istub-0.2.5.tar.gz (56.3 kB view details)

Uploaded Source

Built Distribution

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

istub-0.2.5-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file istub-0.2.5.tar.gz.

File metadata

  • Download URL: istub-0.2.5.tar.gz
  • Upload date:
  • Size: 56.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for istub-0.2.5.tar.gz
Algorithm Hash digest
SHA256 81f5d3c7f748d3043ba5194d48e053c42b31af355f147b11166e723d7db3c5e9
MD5 0cc2a41c8717336f46034d7701ea1484
BLAKE2b-256 d6055316d594a0f6df60351429d58f9b37ab62a0266a3c653863e6d85da1f1b5

See more details on using hashes here.

File details

Details for the file istub-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: istub-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for istub-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7d5e449f54c2c020bb9e1778968e35f100293b9cbc7fcff6ca5629a74a0b4ab
MD5 34312527fbfc0c6456ee8e65ad15c151
BLAKE2b-256 1471e463c23cdcbf982764c9f6088047719d7f5ec592cb86ca98c48746e66e60

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