pre-commit: Add checking of 'make translate' status

.. when this check completes with an error, circuitpython.pot has been updated
and the changes can be staged.
This commit is contained in:
Jeff Epler 2021-01-07 14:41:11 -06:00
parent e79ee785ac
commit 1dda33dc41
1 changed files with 7 additions and 0 deletions

View File

@ -11,3 +11,10 @@ repos:
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/esp32s2/esp-idf-config/.*|ports/esp32s2/boards/.*/sdkconfig)'
- id: trailing-whitespace
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
- repo: local
hooks:
- id: translations
name: Check Translations
entry: sh -c "make translate"
language: system
always_run: true