Skip to content

Merge pull request #41 from BITNP:migrate-to-ruff #112

Merge pull request #41 from BITNP:migrate-to-ruff

Merge pull request #41 from BITNP:migrate-to-ruff #112

Workflow file for this run

name: lint
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip" # caching pip dependencies
- run: pip install -e .
- name: Ruff format
uses: chartboost/ruff-action@v1
with:
args: format --check
- name: Ruff lint
uses: chartboost/ruff-action@v1
- name: Mypy
run: |
pip install mypy
mypy src/