Skip to content

tooling: Enable ruff preview rules E231, E275, E301, E305, and W391. #821

tooling: Enable ruff preview rules E231, E275, E301, E305, and W391.

tooling: Enable ruff preview rules E231, E275, E301, E305, and W391. #821

Workflow file for this run

name: "📜 Check Commit Messages"
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
branches:
- "main"
permissions:
contents: read
jobs:
check-commit-messages:
runs-on: ubuntu-latest
steps:
- name: "⏳ Checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "🟢 Set up Node.js"
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: "🛠 Install commitlint"
run: npm ci --ignore-scripts
- name: "📜 Validate commit messages"
run: npx --no-install commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: "📜 Validate PR title (used as squash commit message)"
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: printf '%s\n' "$PR_TITLE" | npx --no-install commitlint --verbose