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:
|
2023-02-07 13:46:37 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-08-09 21:29:28 +00:00
|
|
|
rev: v6.0.0
|
2023-02-07 13:46:37 +01:00
|
|
|
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
|
2025-05-04 10:50:03 +00:00
|
|
|
rev: v1.37.1
|
2023-02-07 13:46:37 +01:00
|
|
|
hooks:
|
|
|
|
- id: yamllint
|
2023-07-18 10:30:59 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-09-04 21:28:21 +00:00
|
|
|
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
|
2025-06-26 02:01:28 +00:00
|
|
|
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
|
2025-01-30 18:51:01 +00:00
|
|
|
rev: 0.7.22
|
2022-01-25 09:31:33 +01:00
|
|
|
hooks:
|
|
|
|
- id: mdformat
|
|
|
|
additional_dependencies:
|
2024-12-13 11:13:50 +00:00
|
|
|
- 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
|
2025-05-18 07:08:17 +00:00
|
|
|
rev: v0.45.0
|
2023-01-13 09:57:01 +01:00
|
|
|
hooks:
|
|
|
|
- id: markdownlint
|
|
|
|
- repo: https://github.com/fsfe/reuse-tool
|
2025-09-05 16:50:23 +00:00
|
|
|
rev: v5.1.1
|
2023-01-13 09:57:01 +01:00
|
|
|
hooks:
|
|
|
|
- id: reuse
|
2025-04-01 08:54:23 +02:00
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2025-08-09 17:28:38 +00:00
|
|
|
rev: v0.11.0.1
|
2025-04-01 08:54:23 +02:00
|
|
|
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
|
2025-02-19 19:30:25 +01:00
|
|
|
- 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
|
2025-07-17 04:37:00 +00:00
|
|
|
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
|
2025-08-15 05:48:51 +00:00
|
|
|
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
|
2025-07-20 18:52:11 +00:00
|
|
|
rev: v8.28.0
|
2025-07-16 15:00:35 +02:00
|
|
|
hooks:
|
|
|
|
- id: gitleaks-docker
|
2023-02-07 13:46:37 +01:00
|
|
|
ci:
|
|
|
|
autoupdate_schedule: quarterly
|
2025-07-16 15:58:46 +02:00
|
|
|
skip:
|
|
|
|
- gitleaks-docker
|