style: 格式化代码,修复不一致的空格和注释,更新ruff action
This commit is contained in:
5
.github/workflows/ruff.yml
vendored
5
.github/workflows/ruff.yml
vendored
@@ -12,7 +12,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.head_ref || github.ref_name }}
|
||||
- uses: astral-sh/ruff-action@v3
|
||||
- name: Install the latest version of ruff
|
||||
uses: astral-sh/ruff-action@v3
|
||||
with:
|
||||
version: "latest"
|
||||
- run: ruff check --fix
|
||||
- run: ruff format
|
||||
- name: Commit changes
|
||||
|
||||
Reference in New Issue
Block a user