Skip to content

Commit 120ac54

Browse files
committed
[src] Format update for ruff
1 parent 305834c commit 120ac54

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/modm_data/cubehal/dmamux_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _fix_request_data(request_map):
6464
else:
6565
m = dac_pattern.match(name)
6666
if m:
67-
fix_requests[f'{m.group("dac")}_CH{m.group("ch")}'] = number
67+
fix_requests[f"{m.group('dac')}_CH{m.group('ch')}"] = number
6868

6969
request_map.update(fix_requests)
7070

src/modm_data/cubemx/device_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def deduplicate_list(dl):
534534
if len(mpins) > 0:
535535
remaps[module]["groups"][mapping["mapping"]] = mpins
536536
LOGGER.debug(
537-
"{:<20}{}".format(module + "_" + config, [f'{b["port"]}{b["pin"]}:{b["name"]}' for b in mpins])
537+
"{:<20}{}".format(module + "_" + config, [f"{b['port']}{b['pin']}:{b['name']}" for b in mpins])
538538
)
539539

540540
# import json

src/modm_data/html2owl/stmicro/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def main():
2828
elif isinstance(doc, ReferenceManual):
2929
docs.append(doc)
3030

31-
calls = [f"python3 -m modm_data.html2owl.stmicro " f"--document {doc.path}" for doc in docs]
31+
calls = [f"python3 -m modm_data.html2owl.stmicro --document {doc.path}" for doc in docs]
3232
with ThreadPool() as pool:
3333
retvals = list(tqdm.tqdm(pool.imap(lambda c: subprocess.run(c, shell=True), calls), total=len(calls)))
3434
for retval, call in zip(retvals, calls):

src/modm_data/html2svd/stmicro/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def main():
3131

3232
Path("log/stmicro/svd").mkdir(exist_ok=True, parents=True)
3333
calls = [
34-
f"python3 -m modm_data.html2svd.stmicro --stm32 {doc.path} " f"> log/stmicro/svd/html_{doc.name}.txt 2>&1"
34+
f"python3 -m modm_data.html2svd.stmicro --stm32 {doc.path} > log/stmicro/svd/html_{doc.name}.txt 2>&1"
3535
for doc in docs
3636
]
3737
with ThreadPool() as pool:

0 commit comments

Comments
 (0)