Skip to content

Add nox and github action for code formatting & type checking #1

Add nox and github action for code formatting & type checking

Add nox and github action for code formatting & type checking #1

Workflow file for this run

name: Format & Type Check
on: [push, pull_request]
jobs:
formatting:
runs-on: ubuntu-latest
name: "Check code style"
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Run ruff via nox
run: |
python -m pip install nox
python -m nox -s format
pyright:
runs-on: ubuntu-latest
name: "Type checking"
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Run pyright via nox
run: |
python -m pip install nox
python -m nox -s pyright