# https://pre-commit.com/hooks.html exclude: |- (?x)^( src/bootstrap-custom\.css\.map |package-lock\.json )$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: detect-private-key exclude: ^private.key$ - id: check-merge-conflict - id: check-ast - id: debug-statements - id: check-toml - id: check-yaml - id: check-json exclude: ^tsconfig.json$ - id: end-of-file-fixer - id: trailing-whitespace - id: mixed-line-ending - repo: https://github.com/codespell-project/codespell rev: v2.4.1 hooks: - id: codespell exclude: |- (?x)^( contribs/gmf/test/spec/data/themescapabilities\.js |contribs/gmf/test/spec/data/themes\.js |buildtools/asitvd.capabilities\.xml |examples/measure\.js |src/bootstrap-custom\.css\.map |buildtools/sgx\.capabilities\.xml )$ args: - --ignore-words=.github/spell-ignore-words.txt - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.1.0 hooks: - id: prettier additional_dependencies: - prettier@3.6.2 # npm - prettier-plugin-sh@0.18.0 # npm - prettier-plugin-toml@2.0.6 # npm - '@prettier/plugin-xml@0.12.0' # npm exclude: |- (?x)^( \.npmignore |\.gitignore |\.prettierignore |examples/svg\.html )$ - repo: https://github.com/editorconfig-checker/editorconfig-checker.python rev: 3.4.0 hooks: - id: editorconfig-checker args: - -disable-indentation - -disable-max-line-length exclude: |- (?x)^( secrets\.tar\.enc )$ - repo: https://github.com/shellcheck-py/shellcheck-py rev: v0.11.0.1 hooks: - id: shellcheck - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 3.0.0 hooks: - id: git-check - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.34.0 hooks: - id: check-github-workflows - id: check-github-actions - id: check-jsonschema name: Check GitHub Workflows set timeout-minutes files: ^\.github/workflows/[^/]+$ types: - yaml args: - --builtin-schema - github-workflows-require-timeout - repo: https://github.com/sirwart/ripsecrets rev: v0.1.8 hooks: - id: ripsecrets exclude: |- (?x)^( private.key |contribs/gmf/apps/desktop_alt/index.html.ejs |examples/googlestreetview.html |examples/mapillarystreetview.js )$ - repo: https://github.com/sbrunner/hooks rev: 1.6.1 hooks: - id: copyright - id: workflows-require-timeout - id: canonicalize - repo: https://github.com/sbrunner/jsonschema-validator rev: 1.0.0 hooks: - id: jsonschema-validator files: |- (?x)^( \.github/ghci\.yaml |ci/applications\.yaml )$ - repo: https://github.com/renovatebot/pre-commit-hooks rev: 41.132.5 hooks: - id: renovate-config-validator - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.13.2 hooks: - id: ruff-format - repo: https://github.com/sbrunner/python-versions-hook rev: 1.1.2 hooks: - id: python-versions