Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Black format reports.py
Browse files Browse the repository at this point in the history
  • Loading branch information
napowderly committed Nov 11, 2024
1 parent cde150c commit 9ee6309
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/faebryk/exporters/documentation/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ def print_bom(root_module: Module) -> None:

for comp in components:
# Only process components that have required traits
if not all([
comp.has_trait(F.has_designator),
comp.has_trait(F.has_footprint),
comp.has_trait(F.has_descriptive_properties)
]):
if not all(
[
comp.has_trait(F.has_designator),
comp.has_trait(F.has_footprint),
comp.has_trait(F.has_descriptive_properties),
]
):
continue

# Get component name
Expand All @@ -65,12 +67,6 @@ def print_bom(root_module: Module) -> None:
lcsc_pn = properties.get("LCSC", "N/A")

# Add row to table
table.add_row(
comp_name,
designator,
footprint_name,
lcsc_pn,
mfr_pn
)
table.add_row(comp_name, designator, footprint_name, lcsc_pn, mfr_pn)

console.print(table)

0 comments on commit 9ee6309

Please sign in to comment.