mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix: reformat with pre-commit locally
This only reformats 2 files, better than nothing I guess?
This commit is contained in:
@@ -398,7 +398,6 @@ class DocsHelper:
|
|||||||
"datasheet config specified in config.yaml but has no entries"
|
"datasheet config specified in config.yaml but has no entries"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
content["if_pinout"] = True
|
content["if_pinout"] = True
|
||||||
if "pinout" in datasheet_config:
|
if "pinout" in datasheet_config:
|
||||||
content["pinout"] = shuttle_config["datasheet_config"]["pinout"]
|
content["pinout"] = shuttle_config["datasheet_config"]["pinout"]
|
||||||
@@ -409,7 +408,6 @@ class DocsHelper:
|
|||||||
# determine appropriate pinout table from pdk first, otherwise fall back to shuttle id
|
# determine appropriate pinout table from pdk first, otherwise fall back to shuttle id
|
||||||
if "pdk" in shuttle_config:
|
if "pdk" in shuttle_config:
|
||||||
match shuttle_config["pdk"]:
|
match shuttle_config["pdk"]:
|
||||||
|
|
||||||
case "sky130A":
|
case "sky130A":
|
||||||
content["pinout"] = "openframe_sky130"
|
content["pinout"] = "openframe_sky130"
|
||||||
case "ihp-sg13g2":
|
case "ihp-sg13g2":
|
||||||
@@ -507,7 +505,6 @@ class DocsHelper:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def project_is_disabled(config: DatasheetConfig, macro: str) -> bool:
|
def project_is_disabled(config: DatasheetConfig, macro: str) -> bool:
|
||||||
|
|
||||||
if config is not None:
|
if config is not None:
|
||||||
if "disabled" in config and config["disabled"] is not None:
|
if "disabled" in config and config["disabled"] is not None:
|
||||||
return macro in config["disabled"]
|
return macro in config["disabled"]
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ class Docs:
|
|||||||
|
|
||||||
temp_subtile_projects = {}
|
temp_subtile_projects = {}
|
||||||
for project in tapeout_index:
|
for project in tapeout_index:
|
||||||
|
|
||||||
logging.info(
|
logging.info(
|
||||||
f"processing datasheet for [{project['address']} : {project['repo']}]"
|
f"processing datasheet for [{project['address']} : {project['repo']}]"
|
||||||
)
|
)
|
||||||
@@ -165,7 +164,6 @@ class Docs:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
elif info["type"] == "group":
|
elif info["type"] == "group":
|
||||||
|
|
||||||
# write group doc
|
# write group doc
|
||||||
group_md_path = f"projects/{info['macro']}/docs/info.md"
|
group_md_path = f"projects/{info['macro']}/docs/info.md"
|
||||||
group_typ_path = f"projects/{info['macro']}/docs/doc.typ"
|
group_typ_path = f"projects/{info['macro']}/docs/doc.typ"
|
||||||
|
|||||||
Reference in New Issue
Block a user