fix: unify logging and qq forward handling #39
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 + Ty Auto Fix | |
| on: | |
| push: | |
| paths: | |
| - "**/*.py" | |
| - "**/*.pyi" | |
| - "pyproject.toml" | |
| - "pyrightconfig.json" | |
| - "uv.lock" | |
| pull_request: | |
| paths: | |
| - "**/*.py" | |
| - "**/*.pyi" | |
| - "pyproject.toml" | |
| - "pyrightconfig.json" | |
| - "uv.lock" | |
| 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: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install Ruff & Run Fix (lint issues) | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "check --fix --output-format=github" | |
| - name: Run Ruff format | |
| run: ruff format --output-format=github | |
| - name: Run Ty check | |
| run: uv run ty check --output-format=github | |
| - 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 |