Skip to content

Formatting

Formatting #28

Workflow file for this run

name: Linting
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd back
pdm install --dev
- name: Check formatting
run: |
cd back
pdm run black --check src
pdm run black --check tests
- name: Check typing
run: |
cd back
pdm run pyright src
- name: Check for overall code issues
run: |
cd back
pdm run ruff src