Skip to content

Add Mypy workflow

Add Mypy workflow #78

Workflow file for this run

name: Python Code Quality
on:
push:
pull_request:
branches:
- main
jobs:
black:
name: Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Black formatting for Python scripts
uses: psf/black@stable
with:
options: --check --verbose
src: .
mypy:
name: Mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Strict static type checking for Python scripts
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- run: pip install mypy
- run: mypy --strict */*.py