49 lines
985 B
YAML
49 lines
985 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
ruff:
|
|
name: Ruff format & imports
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install Ruff
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ruff==0.14.10
|
|
|
|
- name: Format check
|
|
run: ruff format --check .
|
|
|
|
- name: Import order check
|
|
run: ruff check --select I .
|
|
|
|
prettier:
|
|
name: Prettier (web)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "22"
|
|
|
|
- name: Prettier check (web)
|
|
run: npx prettier@3.7.4 --check "web/**/*.{js,jsx,ts,tsx,css,scss,html,json}"
|