Skip to content

Commit e80cde0

Browse files
authored
ext: Stop excluding 'ext/testlib' from pre-commit and format (#267)
Though in "ext" this directory is regularly modified. `pre-commit` should run on these files. This PR includes running `pre-commit run --files ext/testlib` to reformat the files in "ext/testlib" using Python Black.
2 parents cc757cf + 96144f9 commit e80cde0

19 files changed

+962
-716
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ c3bd8eb1214cbebbc92c7958b80aa06913bce3ba
2929

3030
# A commit which ran flynt all Python files.
3131
e73655d038cdfa68964109044e33c9a6e7d85ac9
32+
33+
# A commit which ran pre-commit on ext/testlib
34+
9e1afdecefaf910fa6e266f29dc480a32b0fa83e

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ default_language_version:
4040

4141
exclude: |
4242
(?x)^(
43-
ext/.*|
43+
ext/(?!testlib/).*|
4444
build/.*|
4545
src/systemc/ext/.*|
4646
src/systemc/tests/.*/.*|

ext/testlib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
from .configuration import *
3737
from .main import main
3838

39-
#TODO Remove this awkward bootstrap
40-
#FIXME
39+
# TODO Remove this awkward bootstrap
40+
# FIXME
4141
from gem5 import *
4242

43-
#TODO Remove this as an export, users should getcwd from os
43+
# TODO Remove this as an export, users should getcwd from os
4444
from os import getcwd

0 commit comments

Comments
 (0)