Restore push-only stage for unit test hook

The `unit-tests` hook in `.pre-commit-config.yaml` was missing the
`stages: [push]` declaration, likely removed unintentionally in a
previous commit. This caused the hook to run automatically on every
commit instead of only on push.

This update re-adds the `stages` configuration to restore the
intended behavior of running unit tests only on push. Developers
who prefer to run tests locally before committing can simply use:

    pytest unit_tests/

Change-Id: I4bc0ab46b1a962f1f6e6e3d06f14b0c1d9ac8fdc
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
This commit is contained in:
Andrew Vaillancourt
2025-07-04 16:27:51 -04:00
parent 444301fcc4
commit a9bb030cad

View File

@@ -78,3 +78,4 @@ repos:
entry: bash -c 'pytest unit_tests/' entry: bash -c 'pytest unit_tests/'
language: system language: system
pass_filenames: false pass_filenames: false
stages: [push]