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:
@@ -78,3 +78,4 @@ repos:
|
||||
entry: bash -c 'pytest unit_tests/'
|
||||
language: system
|
||||
pass_filenames: false
|
||||
stages: [push]
|
Reference in New Issue
Block a user