2020-05-30 10:44:57 +01:00
|
|
|
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-12-10 17:08:47 -08:00
|
|
|
rev: v4.0.1
|
2020-05-30 10:44:57 +01:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
2023-03-25 13:09:35 +05:30
|
|
|
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
|
2020-05-30 10:44:57 +01:00
|
|
|
- id: trailing-whitespace
|
2023-03-25 13:09:35 +05:30
|
|
|
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/generate_errors.diff)'
|
2023-03-18 21:28:45 +07:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
|
|
rev: v2.2.4
|
|
|
|
hooks:
|
|
|
|
- id: codespell
|
2023-03-23 14:09:57 +07:00
|
|
|
args: [-w]
|
2023-03-20 13:36:08 +07:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
locale/|
|
2023-09-20 11:15:13 -05:00
|
|
|
lib/|
|
|
|
|
tests/unicode/data/utf-8_invalid.txt|
|
|
|
|
tests/extmod/data/qr.pgm|
|
|
|
|
tests/basics/bytearray_byte_operations.py
|
2023-03-20 13:36:08 +07:00
|
|
|
)
|
2021-03-15 19:26:29 +05:30
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: translations
|
|
|
|
name: Translations
|
|
|
|
entry: sh -c "if ! make check-translate; then make translate; fi"
|
|
|
|
types: [c]
|
|
|
|
pass_filenames: false
|
|
|
|
language: system
|
|
|
|
- id: formatting
|
|
|
|
name: Formatting
|
2021-03-15 15:32:26 -05:00
|
|
|
entry: python3 tools/codeformat.py
|
2021-03-15 19:26:29 +05:30
|
|
|
types_or: [c, python]
|
|
|
|
language: system
|