Skip to content

Fix mypy in tests

Fix mypy in tests #179

Workflow file for this run

name: Lint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install ruff
- name: ruff
run: |
ruff check .
ruff format --check .
- name: mypy
run: |
mypy --version
rm -rf .mypy_cache
mypy $(find . -name "*.py" | xargs)