Skip to content

Fix mypy and ruff lint #3

Fix mypy and ruff lint

Fix mypy and ruff lint #3

name: Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Recopy
run: |
pip install copier
copier recopy $project --force
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[lint]"
- name: Lint with ruff
run: |
ruff check --output-format=github src tests
- name: Format with ruff
run: |
ruff format --check src tests