language-data/.pre-commit-config.yaml

99 lines
2.3 KiB
YAML
Raw Normal View History

2023-01-13 09:57:01 +01:00
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: MIT
2020-04-22 13:15:58 +02:00
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
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-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-json
- id: debug-statements
- id: mixed-line-ending
args: [--fix=lf]
- id: pretty-format-json
args: [--no-sort-keys, --autofix, --no-ensure-ascii]
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks:
- id: yamllint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.12
2022-01-25 09:31:33 +01:00
hooks:
2025-05-20 13:27:50 +02:00
- id: ruff-check
args:
- --fix
- --exit-non-zero-on-fix
2023-12-15 10:43:40 +01:00
- id: ruff-format
2022-01-25 09:31:33 +01:00
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
2022-01-25 09:31:33 +01:00
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
2022-01-25 09:31:33 +01:00
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm==0.4.1
2024-11-03 10:22:07 +01:00
- mdformat-shfmt==0.2.0
2024-08-28 07:59:20 +02:00
- mdformat_tables==1.0.0
2023-01-13 09:57:01 +01:00
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
2023-01-13 09:57:01 +01:00
hooks:
- id: markdownlint
- repo: https://github.com/fsfe/reuse-tool
rev: v5.1.0
2023-01-13 09:57:01 +01:00
hooks:
- id: reuse
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
require_serial: true
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
hooks:
- id: toml-sort-fix
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
2025-02-13 15:10:13 +01:00
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
2025-04-08 11:34:05 +02:00
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
2025-04-08 11:34:05 +02:00
hooks:
- id: shfmt
2025-07-16 15:00:35 +02:00
args: [--write]
2025-05-21 07:54:48 +02:00
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.12.1
2025-04-22 09:07:11 +02:00
hooks:
- id: zizmor
2025-07-16 15:00:35 +02:00
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
2025-07-16 15:00:35 +02:00
hooks:
- id: gitleaks-docker
ci:
autoupdate_schedule: quarterly
2025-07-16 15:58:46 +02:00
skip:
- gitleaks-docker