From c6845a3a12c3916a41185bf38dfa89d54f3b1615 Mon Sep 17 00:00:00 2001 From: gaclove Date: Mon, 31 Aug 2026 19:19:12 +0800 Subject: [PATCH] ci: avoid duplicate and mutating lint runs --- .github/workflows/lint.yml | 2 ++ .pre-commit-config.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 709054091..d56dc9bbf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,6 +3,8 @@ name: lint on: pull_request: push: + branches: + - main concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bdb356ab0..9f46f2363 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: rev: v0.11.0 hooks: - id: ruff - args: [--fix, --respect-gitignore, --config=pyproject.toml] + args: [--respect-gitignore, --config=pyproject.toml] - id: ruff-format args: [--config=pyproject.toml]