dd6dd5df21
* use a virtual fat filesystem during the test * this makes the file I/O part more closely patch runtime which is nice * side-steps the need to add a special function for testing * but test still can't be run on a device, because the vfs calls are incompatible, and you intentionally can't remount "/" anyway * and side-steps problems with storing 'bad' toml files
27 lines
872 B
YAML
27 lines
872 B
YAML
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
|
#
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/espressif/esp-idf-config/.*|ports/espressif/boards/.*/sdkconfig)'
|
|
- id: trailing-whitespace
|
|
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/.*)'
|
|
- 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
|
|
entry: python3 tools/codeformat.py
|
|
types_or: [c, python]
|
|
language: system
|