Skip to content

💎 style: fix linting issues #21

💎 style: fix linting issues

💎 style: fix linting issues #21

Workflow file for this run

name: ci
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Format with ruff
run: |
poetry run ruff format .
- name: Lint with ruff
run: |
poetry run ruff check .
- name: Type check with mypy and install missing type stubs using Poetry
run: |
poetry run mypy . || true
poetry run mypy --install-types --non-interactive
poetry run mypy .
- name: Test with unittest
run: |
poetry run python -m unittest -v