From 64add0e04dc3bf9e5a812f3173c6133fbc4dcac9 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 22 Aug 2022 11:40:08 -0700 Subject: [PATCH] misc: Exclude test ref directories from pre-commit The files in "tests/*./ref" directories are used in tests to check the output of a test is valid. As such these should not be automatically formatted by the pre-commit. Change-Id: I82be1a91132a0b6c66c8bbb8f6d7dcc6e72abe77 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62631 Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Tested-by: kokoro Maintainer: Jason Lowe-Power --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4ef84266e4..e3e2561a00b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,7 +44,8 @@ exclude: | build/.*| src/systemc/ext/.*| src/systemc/tests/.*/.*| - src/python/m5/ext/.* + src/python/m5/ext/.*| + tests/.*/ref/.* )$ default_stages: [commit]