diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b4e3fce8a..92cbf3785 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,7 @@ jobs: pre-commit install - name: Run pre-commit checks - run: pre-commit run --all-files --show-diff-on-failure + run: SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure - name: Run sgl-kernel clang-format checks uses: DoozyX/clang-format-lint-action@v0.18.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31df0140b..1e09712ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,7 @@ 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: