Skip to content

Commit

Permalink
misc: Exclude test ref directories from pre-commit
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
  • Loading branch information
BobbyRBruce committed Aug 24, 2022
1 parent ab04acc commit 64add0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 64add0e

Please sign in to comment.