Validator for type annotations
Project description
iStub
Validator for type annotations.
- Stubs generation
- Code style checking with
flake8
- Type checking with
mypy
andpyright
- 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
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.4.tar.gz
(9.9 kB
view details)
Built Distribution
istub-0.2.4-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file istub-0.2.4.tar.gz
.
File metadata
- Download URL: istub-0.2.4.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c05a9d0ce6c6cb6acca92be01462a866867e13d37a711caae87c2dd00006a6c1 |
|
MD5 | b64715a975bf7cb28bc78ed74b71804f |
|
BLAKE2b-256 | 449717c5b2b4a2d6c4b1bc110470a403fbe01ac23419328f2e9885c395401379 |
File details
Details for the file istub-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: istub-0.2.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dac1a1d86e6846f43c8e562c2e4ed1fe2cefbaaf9829b7ce9cce844e409cf954 |
|
MD5 | 2f3215ec5de2c3c488a8f26f5833ac04 |
|
BLAKE2b-256 | b482f42b052f1fec914f3ab633d571b1339fa76b1ce08674cbd0bff757a93392 |