2020-05-30 05:44:57 -04:00
|
|
|
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-12-10 20:08:47 -05:00
|
|
|
rev: v4.0.1
|
2020-05-30 05:44:57 -04:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
2021-09-14 14:10:55 -04:00
|
|
|
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/espressif/esp-idf-config/.*|ports/espressif/boards/.*/sdkconfig)'
|
2020-05-30 05:44:57 -04:00
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
|
2021-03-15 09:56:29 -04:00
|
|
|
- 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 16:32:26 -04:00
|
|
|
entry: python3 tools/codeformat.py
|
2021-03-15 09:56:29 -04:00
|
|
|
types_or: [c, python]
|
|
|
|
language: system
|