Skip to content

Switch to ruff for lint and format #1196

Switch to ruff for lint and format

Switch to ruff for lint and format #1196

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
python-version: "3.11"

Check failure on line 18 in .github/workflows/linter.yml

View workflow run for this annotation

GitHub Actions / Lint

Invalid workflow file

The workflow is not valid. .github/workflows/linter.yml (Line: 18, Col: 9): Unexpected value 'python-version'
with:
cache: "pip"
- run: pip install --upgrade pre-commit
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Lint
run: pre-commit run --files $(git diff --name-only master...HEAD)