update NapCat and rules documentation for merged-forward rendering an… #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ruff Lint & Format & Auto Fix | |
| on: | |
| push: | |
| branches-ignore: | |
| - "dependabot/**" | |
| - "temp/**" | |
| - "scratch/**" | |
| paths-ignore: | |
| - ".github/**" | |
| - "docs/**" | |
| - "**/*.md" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Ruff & Run Fix (lint issues) | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "check --fix" | |
| - name: Run Ruff format | |
| run: ruff format . | |
| - name: Auto commit fixes with Verified badge | |
| uses: siiway/verified_bot_commit@v0 | |
| with: | |
| message: "[skip ci] style: code auto-fix & format" | |
| files: | | |
| *.py | |
| **/*.py | |
| ref: ${{ github.head_ref || github.ref }} | |
| if-no-commit: notice |