examples: add missing files #13
style.yml
on: push
Run linters
18s
Check for License headers
7s
Annotations
130 errors and 3 warnings
/home/runner/work/seal5/seal5/seal5/backends/llvmir/writer.py#L119
# install_dir / "llvm" / "build",
install_dir,
input_file,
output_file,
skip_patterns=True,
- skip_formats=True
+ skip_formats=True,
)
metrics["n_success"] += 1
except AssertionError:
pass
metrics["n_failed"] += 1
|
/home/runner/work/seal5/seal5/seal5/backends/patterngen/writer.py#L153
output_file,
skip_patterns=False,
skip_formats=not args.formats,
ext=predicate,
mattr=mattr,
-
)
if output_file.is_file():
metrics["n_success"] += 1
if args.formats:
file_artifact_fmt_dest = f"llvm/lib/Target/RISCV/seal5/{set_name}/{out_name_fmt}"
|
seal5/backends/coredsl2/writer.py#L19
'm2isar.metamodel.behav' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_gisel_legalizer/writer.py#L21
logger = logging.getLogger("riscv_gisel_legalizer")
# if (ST.hasVendorXCvsimd()) {
+
def type_helper(ty):
print("type_helper", ty)
ty_ = ty.replace("seal5_", "")
if ty_.startswith("p"):
sz = ty_[1:]
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_gisel_legalizer/writer.py#L39
n = int(n)
sz = int(sz)
return f"const LLT {ty} = LLT::fixed_vector({n}, LLT::scalar({sz}));"
else:
raise RuntimeError(f"Unsupported: {ty}")
-
def gen_riscv_gisel_legalizer_str(legalizer_settings: RISCVLegalizerSettings):
print("legalizer_settings", legalizer_settings)
ops = legalizer_settings.ops
|
seal5/backends/riscv_features/writer.py#L27
Line too long (133 > 120 characters) (E501)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_gisel_legalizer/writer.py#L165
if gisel_settings:
content = gen_riscv_gisel_legalizer_str(gisel_settings)
with open(out_path, "w") as f:
f.write(content)
riscv_gisel_legalizer_patch = NamedPatch(
- "llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp", key="riscv_legalizer_info", src_path=out_path
+ "llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp",
+ key="riscv_legalizer_info",
+ src_path=out_path,
)
artifacts[None].append(riscv_gisel_legalizer_patch)
if args.metrics:
raise NotImplementedError
metrics_file = args.metrics
|
seal5/backends/riscv_features/writer.py#L29
Line too long (150 > 120 characters) (E501)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_isa_info/writer.py#L22
from seal5.settings import ExtensionsSettings, LLVMVersion
logger = logging.getLogger("riscv_isa_info")
-MAKO_TEMPLATE = " {\"${arch}\", RISCVExtensionVersion{${version_major}, ${version_minor}}},"
-MAKO_TEMPLATE_LLVM18 = " {\"${arch}\", {${version_major}, ${version_minor}}},"
+MAKO_TEMPLATE = ' {"${arch}", RISCVExtensionVersion{${version_major}, ${version_minor}}},'
+MAKO_TEMPLATE_LLVM18 = ' {"${arch}", {${version_major}, ${version_minor}}},'
def gen_riscv_isa_info_str(name: str, ext_settings: ExtensionsSettings, llvm_version: LLVMVersion):
# print("name", name)
# print("ext_settings", ext_settings)
|
seal5/backends/riscv_gisel_legalizer/writer.py#L20
'seal5.settings.ExtensionsSettings' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_isa_info/writer.py#L138
f.write(content)
if ext_settings.experimental:
key = "riscv_isa_info_experimental"
else:
key = "riscv_isa_info"
- riscv_isa_info_patch = NamedPatch(
- "llvm/lib/Support/RISCVISAInfo.cpp", key=key, src_path=out_path
- )
+ riscv_isa_info_patch = NamedPatch("llvm/lib/Support/RISCVISAInfo.cpp", key=key, src_path=out_path)
artifacts[None].append(riscv_isa_info_patch)
if args.metrics:
metrics_file = args.metrics
with open(metrics_file, "w") as f:
f.write(",".join(metrics.keys()))
|
seal5/backends/riscv_gisel_legalizer/writer.py#L26
Expected 2 blank lines, found 1 (E302)
|
/home/runner/work/seal5/seal5/seal5/resources/lit.cfg.py#L13
from lit.llvm import llvm_config
from lit.llvm.subst import FindTool
from lit.llvm.subst import ToolSubst
# name: The name of this test suite.
-config.name = 'LLVM'
+config.name = "LLVM"
# testFormat: The test format to use to interpret tests.
# config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
config.test_format = lit.formats.ShTest(True)
# # suffixes: A list of file extensions to treat as test files. This is overriden
# # by individual lit.local.cfg files in the test subdirectories.
-config.suffixes = ['.ll', '.c', '.test', '.txt', '.s', '.mir', '.yaml']
+config.suffixes = [".ll", ".c", ".test", ".txt", ".s", ".mir", ".yaml"]
|
seal5/backends/riscv_gisel_legalizer/writer.py#L47
Too many blank lines (3) (E303)
|
/home/runner/work/seal5/seal5/seal5/settings.py#L447
@DataClass
class LLVMSettings(YAMLSettings):
state: Optional[LLVMState] = None
configs: Optional[Dict[str, LLVMConfig]] = None
+
@DataClass
class RISCVLegalizerSetting(YAMLSettings):
name: Optional[Union[str, List[str]]] = None
types: Optional[Union[str, List[str]]] = None
onlyif: Optional[Union[str, List[str]]] = None
+
@DataClass
class RISCVLegalizerSettings(YAMLSettings):
ops: Optional[List[RISCVLegalizerSetting]] = None
+
@DataClass
class RISCVSettings(YAMLSettings):
xlen: Optional[int] = None
features: Optional[List[str]] = None
|
/home/runner/work/seal5/seal5/seal5/settings.py#L478
@DataClass
class ToolsSettings(YAMLSettings):
pattern_gen: Optional[PatternGenSettings] = None
+
@DataClass
class Seal5Settings(YAMLSettings):
logging: Optional[LoggingSettings] = None
filter: Optional[FilterSettings] = None
|
seal5/backends/riscv_gisel_legalizer/writer.py#L170
Line too long (123 > 120 characters) (E501)
|
/home/runner/work/seal5/seal5/seal5/tools/cdsl2llvm.py#L45
"pattern-gen", cwd=dest, print_func=logger.info if verbose else logger.debug, live=True, use_ninja=use_ninja
)
def get_pattern_gen_patches(
- src: Path, temp_dir: Path, verbose: bool = False,
+ src: Path,
+ temp_dir: Path,
+ verbose: bool = False,
):
# TODO: copy!
artifacts = []
directory_artifact = Directory(
"llvm/tools/pattern-gen",
|
seal5/backends/viewer_seal5/treegen.py#L11
'tkinter as tk' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/flow.py#L169
logger.error("Target directory does not exist! Aborting...")
sys.exit(1)
sha, version_info = llvm.clone_llvm_repo(self.directory, clone_url, ref=clone_ref, label=self.name)
else:
if force:
- sha, version_info = llvm.clone_llvm_repo(self.directory, clone_url, ref=clone_ref, refresh=True, label=self.name)
+ sha, version_info = llvm.clone_llvm_repo(
+ self.directory, clone_url, ref=clone_ref, refresh=True, label=self.name
+ )
if self.meta_dir.is_dir():
if force is False and not utils.ask_user(
"Overwrite existing .seal5 diretcory?", default=False, interactive=interactive
):
logger.error(f"Directory {self.meta_dir} already exists! Aborting...")
|
seal5/backends/viewer_seal5/treegen.py#L13
'...metamodel.arch' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/flow.py#L1260
cdsl2llvm_build_dir = str(self.build_dir / config)
else:
cdsl2llvm_build_dir = str(self.deps_dir / "cdsl2llvm" / "llvm" / "build")
cdsl2llvm.convert_ll_to_gmir(
# self.deps_dir / "cdsl2llvm" / "llvm" / "build", ll_file, output_file
- cdsl2llvm_build_dir, ll_file, output_file
+ cdsl2llvm_build_dir,
+ ll_file,
+ output_file,
)
except AssertionError:
pass
# errs.append((insn_name, str(ex)))
if len(errs) > 0:
|
seal5/backends/viewer_seal5/utils.py#L12
'anytree.RenderTree' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/flow.py#L1400
# patches.extend(self.gen_mc_tests_patches())
# # Codegen Level
# if "selection_dag_legalizer" not in skip:
# patches.extend(self.gen_selection_dag_legalizer_patches())
- if ("riscv_gisel_legalizer" in only or len(only) == 0) and ("riscv_gisel_legalizer" not in skip or len(skip) == 0):
+ if ("riscv_gisel_legalizer" in only or len(only) == 0) and (
+ "riscv_gisel_legalizer" not in skip or len(skip) == 0
+ ):
self.gen_riscv_gisel_legalizer_patch(verbose=verbose)
# if "scalar_costs" not in skip:
# patches.extend(self.gen_scalar_costs_patches())
# if "simd_costs" not in skip:
# patches.extend(self.gen_simd_costs_patches())
|
/home/runner/work/seal5/seal5/seal5/transform/filter_model/filter.py#L209
size += length
assert size in [16, 32, 64, 128], f"Invalid size: {size}"
if drop2 and keep2:
ret = size not in drop2 and size in keep2
elif keep2:
- ret = size in keep2
+ ret = size in keep2
elif drop2:
ret = size not in drop2
if not ret:
return False
if opcode is None: # not found (not a riscv insn?)
|
seal5/backends/viewer_seal5/utils.py#L29
Redefinition of unused 'TreeGenContext' from line 19 (F811)
|
seal5/backends/viewer_seal5/viewer.py#L23
'...metamodel.utils.expr_preprocessor.process_attributes' imported but unused (F401)
|
seal5/backends/viewer_seal5/viewer.py#L23
'...metamodel.utils.expr_preprocessor.process_functions' imported but unused (F401)
|
seal5/backends/viewer_seal5/viewer.py#L23
'...metamodel.utils.expr_preprocessor.process_instructions' imported but unused (F401)
|
seal5/backends/viewer_seal5/viewer.py#L108
Local variable 'consts_node' is assigned to but never used (F841)
|
seal5/backends/viewer_seal5/viewer.py#L307
Local variable 'text' is assigned to but never used (F841)
|
seal5/backends/yaml/writer.py#L19
'm2isar.metamodel.patch_model' imported but unused (F401)
|
seal5/backends/yaml/writer.py#L19
'm2isar.metamodel.behav' imported but unused (F401)
|
seal5/flow.py#L174
Line too long (129 > 120 characters) (E501)
|
seal5/flow.py#L227
Line too long (233 > 120 characters) (E501)
|
seal5/flow.py#L1023
Local variable 'formats' is assigned to but never used (F841)
|
seal5/flow.py#L1077
Local variable 'formats' is assigned to but never used (F841)
|
seal5/flow.py#L1163
F-string is missing placeholders (F541)
|
seal5/flow.py#L1167
F-string is missing placeholders (F541)
|
seal5/flow.py#L1215
Line too long (174 > 120 characters) (E501)
|
seal5/flow.py#L1371
Local variable 'patches' is assigned to but never used (F841)
|
seal5/flow.py#L1405
Line too long (123 > 120 characters) (E501)
|
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L255
Local variable 'size' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L273
Whitespace before ':' (E203)
|
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L295
Local variable 'qualifiers' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L111
Local variable 'storage' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L112
Local variable 'qualifiers' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L113
Local variable 'attributes' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L340
Whitespace before ':' (E203)
|
seal5/frontends/coredsl2_seal5/expr_interpreter.py#L11
'm2isar.M2ValueError' imported but unused (F401)
|
seal5/frontends/coredsl2_seal5/load_order.py#L11
'm2isar.M2NameError' imported but unused (F401)
|
seal5/frontends/coredsl2_seal5/parser.py#L17
'm2isar.metamodel.arch' imported but unused (F401)
|
seal5/frontends/coredsl2_seal5/parser.py#L34
Local variable 'app_dir' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/parser.py#L71
Syntax error in forward annotation 'dict[str arch.InstructionSet]' (F722)
|
seal5/frontends/coredsl2_seal5/parser.py#L84
Undefined name 'core_name' (F821)
|
seal5/frontends/coredsl2_seal5/parser.py#L153
Undefined name 'fn_def' (F821)
|
seal5/resources/lit.cfg.py#L5
'os' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L6
'sys' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L7
're' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L8
'platform' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L9
'subprocess' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L13
'lit.llvm.llvm_config' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L14
'lit.llvm.subst.FindTool' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L15
'lit.llvm.subst.ToolSubst' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L18
Undefined name 'config' (F821)
|
/home/runner/work/seal5/seal5/seal5/backends/llvmir/writer.py#L119
# install_dir / "llvm" / "build",
install_dir,
input_file,
output_file,
skip_patterns=True,
- skip_formats=True
+ skip_formats=True,
)
metrics["n_success"] += 1
except AssertionError:
pass
metrics["n_failed"] += 1
|
/home/runner/work/seal5/seal5/seal5/backends/patterngen/writer.py#L153
output_file,
skip_patterns=False,
skip_formats=not args.formats,
ext=predicate,
mattr=mattr,
-
)
if output_file.is_file():
metrics["n_success"] += 1
if args.formats:
file_artifact_fmt_dest = f"llvm/lib/Target/RISCV/seal5/{set_name}/{out_name_fmt}"
|
seal5/backends/coredsl2/writer.py#L19
'm2isar.metamodel.behav' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_gisel_legalizer/writer.py#L21
logger = logging.getLogger("riscv_gisel_legalizer")
# if (ST.hasVendorXCvsimd()) {
+
def type_helper(ty):
print("type_helper", ty)
ty_ = ty.replace("seal5_", "")
if ty_.startswith("p"):
sz = ty_[1:]
|
seal5/backends/riscv_features/writer.py#L27
Line too long (133 > 120 characters) (E501)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_gisel_legalizer/writer.py#L39
n = int(n)
sz = int(sz)
return f"const LLT {ty} = LLT::fixed_vector({n}, LLT::scalar({sz}));"
else:
raise RuntimeError(f"Unsupported: {ty}")
-
def gen_riscv_gisel_legalizer_str(legalizer_settings: RISCVLegalizerSettings):
print("legalizer_settings", legalizer_settings)
ops = legalizer_settings.ops
|
seal5/backends/riscv_features/writer.py#L29
Line too long (150 > 120 characters) (E501)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_gisel_legalizer/writer.py#L165
if gisel_settings:
content = gen_riscv_gisel_legalizer_str(gisel_settings)
with open(out_path, "w") as f:
f.write(content)
riscv_gisel_legalizer_patch = NamedPatch(
- "llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp", key="riscv_legalizer_info", src_path=out_path
+ "llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp",
+ key="riscv_legalizer_info",
+ src_path=out_path,
)
artifacts[None].append(riscv_gisel_legalizer_patch)
if args.metrics:
raise NotImplementedError
metrics_file = args.metrics
|
seal5/backends/riscv_gisel_legalizer/writer.py#L20
'seal5.settings.ExtensionsSettings' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_isa_info/writer.py#L22
from seal5.settings import ExtensionsSettings, LLVMVersion
logger = logging.getLogger("riscv_isa_info")
-MAKO_TEMPLATE = " {\"${arch}\", RISCVExtensionVersion{${version_major}, ${version_minor}}},"
-MAKO_TEMPLATE_LLVM18 = " {\"${arch}\", {${version_major}, ${version_minor}}},"
+MAKO_TEMPLATE = ' {"${arch}", RISCVExtensionVersion{${version_major}, ${version_minor}}},'
+MAKO_TEMPLATE_LLVM18 = ' {"${arch}", {${version_major}, ${version_minor}}},'
def gen_riscv_isa_info_str(name: str, ext_settings: ExtensionsSettings, llvm_version: LLVMVersion):
# print("name", name)
# print("ext_settings", ext_settings)
|
seal5/backends/riscv_gisel_legalizer/writer.py#L26
Expected 2 blank lines, found 1 (E302)
|
seal5/backends/riscv_gisel_legalizer/writer.py#L47
Too many blank lines (3) (E303)
|
/home/runner/work/seal5/seal5/seal5/backends/riscv_isa_info/writer.py#L138
f.write(content)
if ext_settings.experimental:
key = "riscv_isa_info_experimental"
else:
key = "riscv_isa_info"
- riscv_isa_info_patch = NamedPatch(
- "llvm/lib/Support/RISCVISAInfo.cpp", key=key, src_path=out_path
- )
+ riscv_isa_info_patch = NamedPatch("llvm/lib/Support/RISCVISAInfo.cpp", key=key, src_path=out_path)
artifacts[None].append(riscv_isa_info_patch)
if args.metrics:
metrics_file = args.metrics
with open(metrics_file, "w") as f:
f.write(",".join(metrics.keys()))
|
seal5/backends/riscv_gisel_legalizer/writer.py#L170
Line too long (123 > 120 characters) (E501)
|
/home/runner/work/seal5/seal5/seal5/resources/lit.cfg.py#L13
from lit.llvm import llvm_config
from lit.llvm.subst import FindTool
from lit.llvm.subst import ToolSubst
# name: The name of this test suite.
-config.name = 'LLVM'
+config.name = "LLVM"
# testFormat: The test format to use to interpret tests.
# config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
config.test_format = lit.formats.ShTest(True)
# # suffixes: A list of file extensions to treat as test files. This is overriden
# # by individual lit.local.cfg files in the test subdirectories.
-config.suffixes = ['.ll', '.c', '.test', '.txt', '.s', '.mir', '.yaml']
+config.suffixes = [".ll", ".c", ".test", ".txt", ".s", ".mir", ".yaml"]
|
seal5/backends/viewer_seal5/treegen.py#L11
'tkinter as tk' imported but unused (F401)
|
seal5/backends/viewer_seal5/treegen.py#L13
'...metamodel.arch' imported but unused (F401)
|
seal5/backends/viewer_seal5/utils.py#L12
'anytree.RenderTree' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/settings.py#L447
@DataClass
class LLVMSettings(YAMLSettings):
state: Optional[LLVMState] = None
configs: Optional[Dict[str, LLVMConfig]] = None
+
@DataClass
class RISCVLegalizerSetting(YAMLSettings):
name: Optional[Union[str, List[str]]] = None
types: Optional[Union[str, List[str]]] = None
onlyif: Optional[Union[str, List[str]]] = None
+
@DataClass
class RISCVLegalizerSettings(YAMLSettings):
ops: Optional[List[RISCVLegalizerSetting]] = None
+
@DataClass
class RISCVSettings(YAMLSettings):
xlen: Optional[int] = None
features: Optional[List[str]] = None
|
seal5/backends/viewer_seal5/utils.py#L29
Redefinition of unused 'TreeGenContext' from line 19 (F811)
|
/home/runner/work/seal5/seal5/seal5/settings.py#L478
@DataClass
class ToolsSettings(YAMLSettings):
pattern_gen: Optional[PatternGenSettings] = None
+
@DataClass
class Seal5Settings(YAMLSettings):
logging: Optional[LoggingSettings] = None
filter: Optional[FilterSettings] = None
|
seal5/backends/viewer_seal5/viewer.py#L23
'...metamodel.utils.expr_preprocessor.process_attributes' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/tools/cdsl2llvm.py#L45
"pattern-gen", cwd=dest, print_func=logger.info if verbose else logger.debug, live=True, use_ninja=use_ninja
)
def get_pattern_gen_patches(
- src: Path, temp_dir: Path, verbose: bool = False,
+ src: Path,
+ temp_dir: Path,
+ verbose: bool = False,
):
# TODO: copy!
artifacts = []
directory_artifact = Directory(
"llvm/tools/pattern-gen",
|
/home/runner/work/seal5/seal5/seal5/flow.py#L169
logger.error("Target directory does not exist! Aborting...")
sys.exit(1)
sha, version_info = llvm.clone_llvm_repo(self.directory, clone_url, ref=clone_ref, label=self.name)
else:
if force:
- sha, version_info = llvm.clone_llvm_repo(self.directory, clone_url, ref=clone_ref, refresh=True, label=self.name)
+ sha, version_info = llvm.clone_llvm_repo(
+ self.directory, clone_url, ref=clone_ref, refresh=True, label=self.name
+ )
if self.meta_dir.is_dir():
if force is False and not utils.ask_user(
"Overwrite existing .seal5 diretcory?", default=False, interactive=interactive
):
logger.error(f"Directory {self.meta_dir} already exists! Aborting...")
|
/home/runner/work/seal5/seal5/seal5/flow.py#L1260
cdsl2llvm_build_dir = str(self.build_dir / config)
else:
cdsl2llvm_build_dir = str(self.deps_dir / "cdsl2llvm" / "llvm" / "build")
cdsl2llvm.convert_ll_to_gmir(
# self.deps_dir / "cdsl2llvm" / "llvm" / "build", ll_file, output_file
- cdsl2llvm_build_dir, ll_file, output_file
+ cdsl2llvm_build_dir,
+ ll_file,
+ output_file,
)
except AssertionError:
pass
# errs.append((insn_name, str(ex)))
if len(errs) > 0:
|
seal5/backends/viewer_seal5/viewer.py#L23
'...metamodel.utils.expr_preprocessor.process_functions' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/flow.py#L1400
# patches.extend(self.gen_mc_tests_patches())
# # Codegen Level
# if "selection_dag_legalizer" not in skip:
# patches.extend(self.gen_selection_dag_legalizer_patches())
- if ("riscv_gisel_legalizer" in only or len(only) == 0) and ("riscv_gisel_legalizer" not in skip or len(skip) == 0):
+ if ("riscv_gisel_legalizer" in only or len(only) == 0) and (
+ "riscv_gisel_legalizer" not in skip or len(skip) == 0
+ ):
self.gen_riscv_gisel_legalizer_patch(verbose=verbose)
# if "scalar_costs" not in skip:
# patches.extend(self.gen_scalar_costs_patches())
# if "simd_costs" not in skip:
# patches.extend(self.gen_simd_costs_patches())
|
seal5/backends/viewer_seal5/viewer.py#L23
'...metamodel.utils.expr_preprocessor.process_instructions' imported but unused (F401)
|
/home/runner/work/seal5/seal5/seal5/transform/filter_model/filter.py#L209
size += length
assert size in [16, 32, 64, 128], f"Invalid size: {size}"
if drop2 and keep2:
ret = size not in drop2 and size in keep2
elif keep2:
- ret = size in keep2
+ ret = size in keep2
elif drop2:
ret = size not in drop2
if not ret:
return False
if opcode is None: # not found (not a riscv insn?)
|
seal5/backends/viewer_seal5/viewer.py#L108
Local variable 'consts_node' is assigned to but never used (F841)
|
seal5/backends/viewer_seal5/viewer.py#L307
Local variable 'text' is assigned to but never used (F841)
|
seal5/backends/yaml/writer.py#L19
'm2isar.metamodel.patch_model' imported but unused (F401)
|
seal5/backends/yaml/writer.py#L19
'm2isar.metamodel.behav' imported but unused (F401)
|
seal5/flow.py#L174
Line too long (129 > 120 characters) (E501)
|
seal5/flow.py#L227
Line too long (233 > 120 characters) (E501)
|
seal5/flow.py#L1023
Local variable 'formats' is assigned to but never used (F841)
|
seal5/flow.py#L1077
Local variable 'formats' is assigned to but never used (F841)
|
seal5/flow.py#L1163
F-string is missing placeholders (F541)
|
seal5/flow.py#L1167
F-string is missing placeholders (F541)
|
seal5/flow.py#L1215
Line too long (174 > 120 characters) (E501)
|
seal5/flow.py#L1371
Local variable 'patches' is assigned to but never used (F841)
|
seal5/flow.py#L1405
Line too long (123 > 120 characters) (E501)
|
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L255
Local variable 'size' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L273
Whitespace before ':' (E203)
|
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L295
Local variable 'qualifiers' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L111
Local variable 'storage' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L112
Local variable 'qualifiers' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L113
Local variable 'attributes' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L340
Whitespace before ':' (E203)
|
seal5/frontends/coredsl2_seal5/expr_interpreter.py#L11
'm2isar.M2ValueError' imported but unused (F401)
|
seal5/frontends/coredsl2_seal5/load_order.py#L11
'm2isar.M2NameError' imported but unused (F401)
|
seal5/frontends/coredsl2_seal5/parser.py#L17
'm2isar.metamodel.arch' imported but unused (F401)
|
seal5/frontends/coredsl2_seal5/parser.py#L34
Local variable 'app_dir' is assigned to but never used (F841)
|
seal5/frontends/coredsl2_seal5/parser.py#L71
Syntax error in forward annotation 'dict[str arch.InstructionSet]' (F722)
|
seal5/frontends/coredsl2_seal5/parser.py#L84
Undefined name 'core_name' (F821)
|
seal5/frontends/coredsl2_seal5/parser.py#L153
Undefined name 'fn_def' (F821)
|
seal5/resources/lit.cfg.py#L5
'os' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L6
'sys' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L7
're' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L8
'platform' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L9
'subprocess' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L13
'lit.llvm.llvm_config' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L14
'lit.llvm.subst.FindTool' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L15
'lit.llvm.subst.ToolSubst' imported but unused (F401)
|
seal5/resources/lit.cfg.py#L18
Undefined name 'config' (F821)
|
Check for License headers
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run linters
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, wearerequired/lint-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: wearerequired/lint-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|