Skip to content

chore: refactor

chore: refactor #931

Workflow file for this run

name: MyPy
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mypy:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
pyversion: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversion }}
- name: Install MyPy
run: |
python -m pip install --upgrade pip
pip install mypy types-requests types-aiofiles
- name: Run MyPy
run: mypy ./dank_mids --pretty --ignore-missing-imports --show-error-codes --show-error-context --no-warn-no-return