Skip to content

fix(mypy): Cast Literal to type to please mypy #2910

fix(mypy): Cast Literal to type to please mypy

fix(mypy): Cast Literal to type to please mypy #2910

Workflow file for this run

# SPDX-FileCopyrightText: AISEC Pentesting Team
#
# SPDX-License-Identifier: CC0-1.0
name: linters
on:
push:
branches:
- master
pull_request:
paths:
- 'pyproject.toml'
- 'uv.lock'
- '.github/**'
- 'src/**'
- 'tests/**'
jobs:
linters:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run reuse lint
run: |
uv run just lint-reuse
- name: Run ruff check
run: |
uv run just lint-ruff-check
- name: Run ruff format
run: |
uv run just lint-ruff-format
linters-win32:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run mypy
run: |
uv run just win32-lint-mypy
type-checks:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run mypy
run: |
uv run just lint-mypy
- name: Run ty typechecker [experimental]
continue-on-error: true
run: |
uv run just lint-ty