Skip to content

Commit d11c40d

Browse files
committed
misc: Run pre-commit run --all-files
This ensures `isort` is applied to all files in the repo. Change-Id: Ib7ced1c924ef1639542bf0d1a01c5737f6ba43e9
1 parent 7d67109 commit d11c40d

File tree

681 files changed

+3589
-2347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

681 files changed

+3589
-2347
lines changed

build_tools/cxx_config_cc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import sys
4444

4545
import importer
46-
4746
from code_formatter import code_formatter
4847

4948
parser = argparse.ArgumentParser()
@@ -59,8 +58,8 @@
5958
module = importlib.import_module(args.modpath)
6059
sim_object = getattr(module, sim_object_name)
6160

62-
from m5.params import isSimObjectClass
6361
import m5.params
62+
from m5.params import isSimObjectClass
6463

6564
code = code_formatter()
6665

build_tools/cxx_config_hh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import sys
4343

4444
import importer
45-
4645
from code_formatter import code_formatter
4746

4847
parser = argparse.ArgumentParser()

build_tools/enum_cc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import sys
4343

4444
import importer
45-
4645
from code_formatter import code_formatter
4746

4847
parser = argparse.ArgumentParser()

build_tools/enum_hh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import sys
4343

4444
import importer
45-
4645
from code_formatter import code_formatter
4746

4847
parser = argparse.ArgumentParser()

build_tools/sim_object_param_struct_cc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import sys
4343

4444
import importer
45-
4645
from code_formatter import code_formatter
4746

4847
parser = argparse.ArgumentParser()

build_tools/sim_object_param_struct_hh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import sys
4343

4444
import importer
45-
4645
from code_formatter import code_formatter
4746

4847
parser = argparse.ArgumentParser()

configs/common/Benchmarks.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@
2424
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

27-
from common.SysPaths import script, disk, binary
2827
from os import environ as env
28+
29+
from common.SysPaths import (
30+
binary,
31+
disk,
32+
script,
33+
)
34+
2935
from m5.defines import buildEnv
3036

3137

configs/common/CacheConfig.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@
4040
# Configure the M5 cache hierarchy config in one place
4141
#
4242

43+
from common import ObjectList
44+
from common.Caches import *
45+
4346
import m5
4447
from m5.objects import *
48+
4549
from gem5.isas import ISA
4650
from gem5.runtime import get_runtime_isa
4751

48-
from common.Caches import *
49-
from common import ObjectList
50-
5152

5253
def _get_hwp(hwp_option):
5354
if hwp_option == None:

configs/common/Caches.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
from m5.defines import buildEnv
4141
from m5.objects import *
42+
4243
from gem5.isas import ISA
4344
from gem5.runtime import get_runtime_isa
4445

configs/common/CpuConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3434
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535

36-
from m5 import fatal
3736
import m5.objects
37+
from m5 import fatal
3838

3939

4040
def config_etrace(cpu_cls, cpu_list, options):

0 commit comments

Comments
 (0)