From 6c7c92eb0216a73f50e99128a969461df0d9707e Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sat, 18 Oct 2025 10:08:50 +0800 Subject: [PATCH] Enable lint on main (#11794) --- .github/workflows/lint.yml | 6 +++++- .pre-commit-config.yaml | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f529be66f..b4e3fce8a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,10 @@ name: Lint -on: [pull_request] +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: lint: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e09712ab..31df0140b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,6 @@ repos: - id: check-shebang-scripts-are-executable - id: detect-private-key - id: debug-statements - - id: no-commit-to-branch - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: