pre-commit: test translations (#25695)

* add test translations to precommit

* fix test translations pre-commit hook

* revert

* fix that

* add to release files

add to release files

* fix

* don't run test on stripped dir

* fix
old-commit-hash: 6393d29b04
taco
Shane Smiskol 3 years ago committed by GitHub
parent a7cb4aa824
commit 9af4e72ffd
  1. 2
      .github/workflows/selfdrive_tests.yaml
  2. 7
      .pre-commit-config.yaml
  3. 2
      release/files_common

@ -62,7 +62,7 @@ jobs:
cp .pylintrc $STRIPPED_DIR
cp mypy.ini $STRIPPED_DIR
cd $STRIPPED_DIR
${{ env.RUN }} "pre-commit run --all"
${{ env.RUN }} "SKIP=test_translations pre-commit run --all"
build_all:
name: build all

@ -70,3 +70,10 @@ repos:
- --quiet
- --force
- -j8
- repo: local
hooks:
- id: test_translations
name: test translations
entry: selfdrive/ui/tests/test_translations.py
language: script
pass_filenames: false

@ -305,6 +305,8 @@ selfdrive/ui/soundd/soundd
selfdrive/ui/soundd/.gitignore
selfdrive/ui/translations/*.ts
selfdrive/ui/translations/languages.json
selfdrive/ui/update_translations.py
selfdrive/ui/tests/test_translations.py
selfdrive/ui/qt/*.cc
selfdrive/ui/qt/*.h

Loading…
Cancel
Save