diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 030d47ea7..059efac4d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 194739dea..386d651cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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