callable_marker: add type hints #180
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: Static code checkers | |
on: [push] | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/base.txt | |
pip install mypy | |
- name: Create a dummy data.py | |
run: cp data.py-dist data.py | |
- name: Install additional typing data and check with mypy | |
run: mypy --install-types --non-interactive lib/ tests/ | |
pyright: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/base.txt | |
pip install pyright | |
- name: Create a dummy data.py | |
run: cp data.py-dist data.py | |
- name: Check with pyright | |
run: pyright lib/ # tests/ |