Skip to content

recipe: promptable content moderation (#249) #198

recipe: promptable content moderation (#249)

recipe: promptable content moderation (#249) #198

Workflow file for this run

name: Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.12"] # Run lint checks only on latest Python version
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install autoflake black
- name: Checking for unused imports
run: |
autoflake -c -r .
- name: Checking code style
run: |
black --check .