Add typing support #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |