Skip to content

Fix type hint on py38 #4

Fix type hint on py38

Fix type hint on py38 #4

Workflow file for this run

name: lint
on: [push]
jobs:
black:
name: Check code formatting with black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract black version from requirements-dev.txt
id: black_version
run: echo "::set-output name=version::$(grep -oP 'black==\K[^"]+' requirements-dev.txt)"
- uses: psf/black@stable
with:
src: ./src
version: ${{ steps.back_version.outputs.version }}
ruff:
name: Check code formatting with ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract ruff version from requirements-dev.txt
id: ruff_version
run: echo "::set-output name=version::$(grep -oP 'ruff==\K[^"]+' requirements-dev.txt)"
- uses: chartboost/ruff-action@v1
with:
version: ${{ steps.ruff_version.outputs.version }}
mypy:
name: Check type hints with mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: |
pip install -r requirements-dev.txt
mypy src/