File tree Expand file tree Collapse file tree
tests/unittests/lib_parsing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ def load_taxonomy(taxonomy_file: Path) -> Taxonomy:
5555 if "taxonomy" not in raw :
5656 raise ValueError (f"Missing 'taxonomy' key at root of { taxonomy_file } " )
5757 data = TaxonomyData .model_validate (raw ["taxonomy" ])
58- return Taxonomy (id = data .id , description = data .description , categories = data .categories )
58+ return Taxonomy (
59+ id = data .id , description = data .description , categories = data .categories
60+ )
5961
6062
6163def check_library_against_taxonomy (library : LibrarySchema , taxonomy : Taxonomy ) -> None :
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ def _make_taxonomy(*categories: TaxonomyCategory) -> Taxonomy:
3030
3131
3232def _make_category (cat_id : str , port_ids : list [str ]) -> TaxonomyCategory :
33- return TaxonomyCategory (
34- id = cat_id , ports = [TaxonomyItem (id = p ) for p in port_ids ]
35- )
33+ return TaxonomyCategory (id = cat_id , ports = [TaxonomyItem (id = p ) for p in port_ids ])
3634
3735
3836def _parse_lib (yaml_content : str ):
You can’t perform that action at this time.
0 commit comments