Skip to content

fix: LLMPerspective: UnboundLocalError: cannot access local variable … #1267

fix: LLMPerspective: UnboundLocalError: cannot access local variable …

fix: LLMPerspective: UnboundLocalError: cannot access local variable … #1267

Workflow file for this run

name: Lint
on: [push, pull_request]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pre-commit
run: pip install pre-commit==3.8.0
- name: Install package
run: |
python -m pip install --upgrade pip
if [ -f requirements/runtime.txt ]; then pip install -r requirements/runtime.txt; fi
pip install -e .
- name: Check Python syntax and imports
run: |
python .github/scripts/check_imports.py
- name: Run pre-commit
run: pre-commit run --all-files