Skip to content

update xcorev cdsl submodule #21

update xcorev cdsl submodule

update xcorev cdsl submodule #21

GitHub Actions / Black failed Mar 4, 2024 in 0s

5 errors

Black found 5 errors

Annotations

Check failure on line 170 in /home/runner/work/seal5/seal5/seal5/flow.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/seal5/seal5/seal5/flow.py#L159-L170

             ("collect_immediate_operands", passes.collect_immediate_operands, {}),
             ("collect_operand_types", passes.collect_operand_types, {}),
             ("detect_side_effects", passes.detect_side_effects, {}),
             ("detect_inouts", passes.detect_inouts, {}),
             ("detect_registers", passes.detect_registers, {}),
-            ("write_cdsl_full", passes.write_cdsl, {"split": False, "compat": False})
+            ("write_cdsl_full", passes.write_cdsl, {"split": False, "compat": False}),
             # TODO: determine static constraints (xlen,...) -> subtargetvmap
             # detect memory adressing modes
             # self.detect_adressing_modes(verbose)  # TODO
             # detect legal GMIR ops (and map to selectiondag?)
             # self.detect_legal_ops(verbose=verbose)  # TODO

Check failure on line 613 in /home/runner/work/seal5/seal5/seal5/flow.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/seal5/seal5/seal5/flow.py#L602-L613

         if isinstance(dest, str):
             dest = Path(dest)
         suffix = dest.suffix
         if suffix != ".gz":
             raise NotImplementedError("Only .tar.gz export is supported!")
-        artifacts = [self.settings.inputs_dir, self.settings.gen_dir, self.settings.models_dir, self.settings.logs_dir, self.settings.settings_file]
+        artifacts = [
+            self.settings.inputs_dir,
+            self.settings.gen_dir,
+            self.settings.models_dir,
+            self.settings.logs_dir,
+            self.settings.settings_file,
+        ]
         with tarfile.open(dest, mode="w:gz") as archive:
             for artifact in artifacts:
                 name = str(artifact)
                 assert str(self.settings.meta_dir) in name
                 name = name.replace(f"{self.settings.meta_dir}/", "")

Check failure on line 634 in /home/runner/work/seal5/seal5/seal5/flow.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/seal5/seal5/seal5/flow.py#L623-L634

             raise NotImplementedError
         if settings:
             self.settings.reset()
         logger.info("Completed clean of Seal5 settings")
 
-    def clean(self, temp: bool = False, patches: bool = False, models: bool = False, inputs: bool = False, logs: bool = False, install: bool = False, build: bool = False, deps: bool = False, verbose: bool = False, interactive: bool = False):
+    def clean(
+        self,
+        temp: bool = False,
+        patches: bool = False,
+        models: bool = False,
+        inputs: bool = False,
+        logs: bool = False,
+        install: bool = False,
+        build: bool = False,
+        deps: bool = False,
+        verbose: bool = False,
+        interactive: bool = False,
+    ):
         logger.info("Cleaning Seal5 directories")
         to_clean = []
         if temp:
             to_clean.append(self.settings.temp_dir)
         if patches:

Check failure on line 72 in /home/runner/work/seal5/seal5/seal5/passes.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/seal5/seal5/seal5/passes.py#L50-L72

 @dataclass
 class PassResult:
     metrics: Optional[dict] = None
     outputs: Optional[List[Path]] = None
 
+
 def check_filter(name, skip, only):
     print("check_filter", name, skip, only)
     if skip is None:
         skip = []
     if only is None:
         only = []
-    if not (
-        (name in only or len(only) == 0)
-        and (name not in skip or len(skip) == 0)
-    ):
+    if not ((name in only or len(only) == 0) and (name not in skip or len(skip) == 0)):
         return True
     return False
+
 
 class Seal5Pass:
     def __init__(self, name, pass_type, pass_scope, handler, fmt=PassFormat.NONE, order=-1, options=None):
         self.name: str = name
         self.pass_type: PassType = pass_type

Check failure on line 331 in /home/runner/work/seal5/seal5/seal5/settings.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/seal5/seal5/seal5/settings.py#L321-L331

 
 # @dataclass
 # class TransformSettings(YAMLSettings):
 #     pass
 
+
 @dataclass
 class PassesSetting(YAMLSettings):
     skip: Optional[List[str]] = None
     only: Optional[List[str]] = None