Validator for type annotations
Project description
iStub
Validator for type annotations.
- Code style checking with flake8 and ruff
- Type checking with mypy and pyright
- Type consistency checking with mypy.stubtest
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81f5d3c7f748d3043ba5194d48e053c42b31af355f147b11166e723d7db3c5e9
|
|
| MD5 |
0cc2a41c8717336f46034d7701ea1484
|
|
| BLAKE2b-256 |
d6055316d594a0f6df60351429d58f9b37ab62a0266a3c653863e6d85da1f1b5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7d5e449f54c2c020bb9e1778968e35f100293b9cbc7fcff6ca5629a74a0b4ab
|
|
| MD5 |
34312527fbfc0c6456ee8e65ad15c151
|
|
| BLAKE2b-256 |
1471e463c23cdcbf982764c9f6088047719d7f5ec592cb86ca98c48746e66e60
|