Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Cache inflight current chain-head requests #98

Cache inflight current chain-head requests

Cache inflight current chain-head requests #98

Workflow file for this run

name: Lint
permissions:
contents: read
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
workflow_dispatch:
jobs:
lint:
if: '!github.event.pull_request.draft'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Cache venv
id: cache
uses: actions/cache@v5
with:
path: venv
key: v2-lint-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
- name: Install deps
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install uv
python -m uv sync --extra dev --active
- name: ruff check
run: |
source venv/bin/activate
ruff check async_substrate_interface/
- name: ruff format
run: |
source venv/bin/activate
ruff format --check async_substrate_interface/
- name: mypy
run: |
source venv/bin/activate
mypy async_substrate_interface/