Skip to content

[TurnCompleter] Add ruff+mypy to minimono_turn_completer, fix typing #2

[TurnCompleter] Add ruff+mypy to minimono_turn_completer, fix typing

[TurnCompleter] Add ruff+mypy to minimono_turn_completer, fix typing #2

name: Run linting on compatibility_api
on:
pull_request:
paths:
- 'project/compatibility_api/**'
branches:
- '**'
types:
- opened
- synchronize
- reopened
- ready_for_review
workflow_dispatch:
inputs:
test_branch:
description: 'Branch to run the tests on'
required: false
default: 'main'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false
fetch-depth: 1
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
working-directory: ./project/compatibility_api
env:
UV_GIT_LFS: 1
run: |
uv sync
- name: run mypy
working-directory: ./project/compatibility_api
run: |
uv run mypy compatibility_api
- name: run ruff-strict
working-directory: ./project/compatibility_api
run: |
uv run ruff check --output-format=github --no-fix