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

88 lines
2.1 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: v5.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.0
hooks:
- id: yamllint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
2022-01-25 09:31:33 +01:00
hooks:
2023-04-04 15:24:33 +02:00
- id: ruff
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: https://github.com/asottile/blacken-docs
rev: 1.19.1
2022-01-25 09:31:33 +01:00
hooks:
- id: blacken-docs
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.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-08-28 07:59:20 +02:00
- mdformat-ruff==0.1.3
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.44.0
2023-01-13 09:57:01 +01:00
hooks:
- id: markdownlint
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
2023-01-13 09:57:01 +01:00
hooks:
- id: reuse
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
require_serial: true
args: [-x]
- 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
ci:
autoupdate_schedule: quarterly