Merge pull request #6599 from jbampton/manual-hooks

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-11-28 14:28:11 +09:00
committed by GitHub
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ jobs:
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: pre-commit run --all-files
- name: Run manual pre-commit hooks
run: pre-commit run --all-files --hook-stage manual
ls-lint:
name: Run ls-lint
runs-on: ubuntu-latest
+10
View File
@@ -24,12 +24,21 @@ repos:
files: \.(json|md|ya?ml)$
language: node
additional_dependencies: ["prettier@3.6.2"]
stages: [manual]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
hooks:
- id: gitleaks
name: run gitleaks
description: detect hardcoded secrets with gitleaks
- repo: https://github.com/oxipng/oxipng
rev: v9.1.5
hooks:
- id: oxipng
name: run oxipng
description: use lossless compression to optimize PNG files
args: ["--fix", "-o", "4", "--strip", "safe", "--alpha"]
stages: [manual]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
@@ -97,6 +106,7 @@ repos:
name: run markdown-link-check
description: checks hyperlinks in Markdown files
args: [--config=.github/linters/mlc_config.json, -q]
stages: [manual]
types: [markdown]
files: \.md$
- repo: https://github.com/rubocop/rubocop