Skip to content

Add typing support

Add typing support #6

Workflow file for this run

name: Lint
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt -r requirements_dev.txt
- name: Add mypy annotator
uses: pr-annotators/[email protected]
- name: Run mypy
run: mypy fastremap
- name: Compile
run: python setup.py develop
- name: Run stub tests
run: python -m mypy.stubtest fastremap --allowlist mypy.allowlist