feat: add mypy as type checker, update code and add comment to reference #248
Workflow file for this run
This file contains 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: Run Type Checks | |
on: [pull_request] | |
permissions: | |
contents: write | |
jobs: | |
type-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Requirements | |
run: | | |
sudo apt-get update && | |
pip install poetry && | |
poetry add mypy | |
poetry lock && | |
poetry install && | |
- name: Run type checks | |
run: poetry run mypy src --install-types --non-interactive --ignore-missing-imports --exclude "cli/templates" |