# SPDX-FileCopyrightText: Copyright (C) 2025 Opal Health Informatics Group # # SPDX-License-Identifier: MIT repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - id: check-executables-have-shebangs - id: check-json # file contains comments exclude: ^\.vscode/settings.json$ - id: check-merge-conflict - id: check-toml - id: check-xml - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - repo: https://github.com/executablebooks/mdformat rev: 1.0.0 hooks: - id: mdformat - repo: https://github.com/DavidAnson/markdownlint-cli2 rev: v0.22.0 hooks: - id: markdownlint-cli2 - repo: https://github.com/fsfe/reuse-tool rev: v6.2.0 hooks: - id: reuse-lint-file - repo: https://github.com/crate-ci/typos rev: v1.45.0 hooks: - id: typos # zizmor detects security vulnerabilities in GitHub Actions workflows. - repo: https://github.com/woodruffw/zizmor-pre-commit rev: v1.23.1 hooks: - id: zizmor - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.37.1 hooks: - id: check-github-workflows args: ["--verbose"] - id: check-github-actions args: ["--verbose"] - id: check-renovate args: ["--verbose"] additional_dependencies: ['json5'] # `actionlint` hook, for verifying correct syntax in GitHub Actions workflows. # Some additional configuration for `actionlint` can be found in `.github/actionlint.yaml`. - repo: https://github.com/rhysd/actionlint rev: v1.7.12 hooks: - id: actionlint language: golang additional_dependencies: # actionlint has a shellcheck integration which extracts shell scripts in `run:` steps from GitHub Actions # and checks these with shellcheck. This is arguably its most useful feature, # but the integration only works if shellcheck is installed - "github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.11.1" - repo: https://github.com/renovatebot/pre-commit-hooks rev: 43.110.2 hooks: - id: renovate-config-validator args: ["--strict"] files: ".*\\.json5$"