Skip to content

fix Feature request issue template labels #73

fix Feature request issue template labels

fix Feature request issue template labels #73

Workflow file for this run

name: Ruff
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract ruff version from .pre-commit-config.yaml
id: get-version
run: |
version=$(grep -A 2 'repo: https://github.com/astral-sh/ruff-pre-commit' .pre-commit-config.yaml | grep 'rev:' | sed 's/.*rev: v\?//')
echo "version=${version}" >> $GITHUB_OUTPUT
- name: Check Ruff Linting
uses: astral-sh/ruff-action@v3
with:
version: ${{ steps.get-version.outputs.version }}
args: "check --select I"
- name: Check Ruff Formatting
uses: astral-sh/ruff-action@v3
with:
version: ${{ steps.get-version.outputs.version }}
args: "format --check --diff"