From 0805c830731eb3a353727f4a3a0fae6ed9eb9703 Mon Sep 17 00:00:00 2001 From: Tim Hutt Date: Tue, 8 Oct 2024 08:58:44 +0100 Subject: [PATCH] Reapply pre-commit autoformat This little bit of code from #268 was not formatted in #292 because it was not merged yet. Basically it was a semantic conflict between the PRs, but not a text conflict, so Git can't detect it. This can be prevented using merge queues, but it probably isn't necessary on a repo of this size. --- constants.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/constants.py b/constants.py index c045f552..cff9c043 100644 --- a/constants.py +++ b/constants.py @@ -43,7 +43,6 @@ ) - def read_csv(filename): """ Reads a CSV file and returns a list of tuples. @@ -65,7 +64,10 @@ def read_csv(filename): csrs32 = read_csv("csrs32.csv") # Load the argument lookup table (arg_lut) from a CSV file, mapping argument names to their bit positions -arg_lut = {row[0]: (int(row[1]), int(row[2])) for row in csv.reader(open("arg_lut.csv"), skipinitialspace=True)} +arg_lut = { + row[0]: (int(row[1]), int(row[2])) + for row in csv.reader(open("arg_lut.csv"), skipinitialspace=True) +} # for mop arg_lut["mop_r_t_30"] = (30, 30)