Skip to content

Deps: Bump actions/checkout from 4.1.6 to 4.2.0 #31

Deps: Bump actions/checkout from 4.1.6 to 4.2.0

Deps: Bump actions/checkout from 4.1.6 to 4.2.0 #31

Workflow file for this run

name: 📋 PR Checks
on:
pull_request:
push:
branches: [main]
env:
MIN_SUPPORTED_PYTHON: "3.8"
PYTHON_DEPENDENCIES: ".[dev]"
jobs:
lint:
name: 🔍 Lint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ env.MIN_SUPPORTED_PYTHON }}
uses: actions/[email protected]
with:
python-version: ${{ env.MIN_SUPPORTED_PYTHON }}
cache: pip
- name: Install dependencies
run: python -m pip install $PYTHON_DEPENDENCIES
- name: Lint (ruff)
run: ruff check --output-format github .
- name: Lint (mypy)
run: mypy .
format:
name: 🎨 Format
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ env.MIN_SUPPORTED_PYTHON }}
uses: actions/[email protected]
with:
python-version: ${{ env.MIN_SUPPORTED_PYTHON }}
cache: pip
- name: Install dependencies
run: python -m pip install $PYTHON_DEPENDENCIES
- name: Format (black)
run: python -m black --check --diff .
- name: Format (isort)
run: python -m isort --check --diff .