From 83e93928e7bca8b3000aebab2c565f1c3b8cb339 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 19 Apr 2021 14:57:40 -0400 Subject: [PATCH] Only run pytest pre-commit hook when files in monkey/ are modified --- .pre-commit-config.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e668f8b8..33b42663b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,5 @@ repos: name: pytest entry: bash -c "cd monkey && pytest" language: system - pass_filenames: false - # alternatively you could `types: [python]` so it only runs when python files change - # though tests might be invalidated if you were to say change a data file - always_run: true + files: "monkey/" + exclude: "monkey/monkey_island/cc/ui"