Only run pytest pre-commit hook when files in monkey/ are modified

This commit is contained in:
Mike Salvatore 2021-04-19 14:57:40 -04:00
parent 3f66e95a90
commit 83e93928e7
1 changed files with 2 additions and 4 deletions

View File

@ -39,7 +39,5 @@ repos:
name: pytest name: pytest
entry: bash -c "cd monkey && pytest" entry: bash -c "cd monkey && pytest"
language: system language: system
pass_filenames: false files: "monkey/"
# alternatively you could `types: [python]` so it only runs when python files change exclude: "monkey/monkey_island/cc/ui"
# though tests might be invalidated if you were to say change a data file
always_run: true