Skip to content

Enable code linting via pre-commit + ruff and fix all findings #1

Enable code linting via pre-commit + ruff and fix all findings

Enable code linting via pre-commit + ruff and fix all findings #1

Workflow file for this run

on:
push:
branches:
- main
- dev
pull_request:
name: pre-commit
concurrency:
# Concurrency group that uses the workflow name and PR number if available
# or commit SHA as a fallback. If a new build is triggered under that
# concurrency group while a previous build is running it will be canceled.
# Repeated pushes to a PR will cancel all previous builds, while multiple
# merges to main will not cancel.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: pre-commit/[email protected]