Skip to content

jobs.py: read the config like pytest and tools.py #2894

jobs.py: read the config like pytest and tools.py

jobs.py: read the config like pytest and tools.py #2894

Workflow file for this run

name: Static code checkers
on: [push]
permissions: {}
env:
PREK_COLOR: "always"
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
version: "0.7.x"
activate-environment: true
- run: uv sync --frozen
env:
FORCE_COLOR: "1"
- name: Create a dummy vm_data.py
run: cp vm_data.py-dist vm_data.py
- run: prek -a mypy
pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
version: "0.7.x"
activate-environment: true
- run: uv sync --frozen
env:
FORCE_COLOR: "1"
- name: Create a dummy vm_data.py
run: cp vm_data.py-dist vm_data.py
- run: prek -a pyright
ruff:
runs-on: ubuntu-latest
env:
FORCE_COLOR: "1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
version: "0.7.x"
activate-environment: true
- run: uv sync --frozen
env:
FORCE_COLOR: "1"
- run: prek -a ruff
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
version: "0.7.x"
activate-environment: true
- run: uv sync --frozen
env:
FORCE_COLOR: "1"
- run: prek -a flake8
autopep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
version: "0.7.x"
activate-environment: true
- run: uv sync --frozen
env:
FORCE_COLOR: "1"
- run: prek -a autopep8