Validator for type annotations.
- Code style checking with flake8 and ruff
- Type checking with mypy and pyright
- Type consistency checking with mypy.stubtest
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
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
Full changelog can be found in Releases.
istub
version follows
PEP 440 format.
Please reports any bugs or request new features in istub repository.