Skip to content

remove flake8 warnings #83

remove flake8 warnings

remove flake8 warnings #83

Triggered via push May 14, 2024 06:43
Status Success
Total duration 27s
Artifacts

style.yml

on: push
Run linters
18s
Run linters
Check for License headers
9s
Check for License headers
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 3 warnings
seal5/backends/riscv_features/writer.py#L27
Line too long (133 > 120 characters) (E501)
/home/runner/work/seal5/seal5/examples/demo.py#L65
EXAMPLES_DIR / "cdsl" / "Example.core_desc", ] seal5_flow.load(cdsl_files, verbose=VERBOSE, overwrite=True) # Load test inputs -test_files = [ -] +test_files = [] seal5_flow.load(test_files, verbose=VERBOSE, overwrite=True) # Load YAML inputs cfg_files = [ EXAMPLES_DIR / "cfg" / "llvm.yml",
seal5/backends/riscv_features/writer.py#L29
Line too long (150 > 120 characters) (E501)
/home/runner/work/seal5/seal5/seal5/flow.py#L161
("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
seal5/flow.py#L238
Line too long (123 > 120 characters) (E501)
/home/runner/work/seal5/seal5/seal5/flow.py#L233
self.directory, clone_url, ref=clone_ref, label=self.name, git_settings=self.settings.git ) else: if force: self.repo, sha, version_info = llvm.clone_llvm_repo( - self.directory, clone_url, ref=clone_ref, refresh=True, label=self.name, git_settings=self.settings.git + self.directory, + clone_url, + ref=clone_ref, + refresh=True, + label=self.name, + git_settings=self.settings.git, ) if self.settings.meta_dir.is_dir(): if force is False and not utils.ask_user( "Overwrite existing .seal5 diretcory?", default=False, interactive=interactive ):
seal5/frontends/coredsl2_seal5/architecture_model_builder.py#L273
Whitespace before ':' (E203)
seal5/frontends/coredsl2_seal5/behavior_model_builder.py#L340
Whitespace before ':' (E203)
/home/runner/work/seal5/seal5/seal5/pass_list.py#L45
if prefix: assert isinstance(prefix, str) args.extend(["--prefix", prefix]) if not use_subprocess: from seal5.transform.converter import main as Converter + args = sanitize_args(args) Converter(args) else: utils.python( "-m",
seal5/resources/lit.cfg.py#L7
'lit.llvm.llvm_config' imported but unused (F401)
/home/runner/work/seal5/seal5/seal5/pass_list.py#L81
"--log", log_level, ] if not use_subprocess: from seal5.transform.optimize_instructions import OptimizeInstructions + args = sanitize_args(args) OptimizeInstructions(args) else: utils.python( "-m",
seal5/resources/lit.cfg.py#L10
Undefined name 'config' (F821)
/home/runner/work/seal5/seal5/seal5/pass_list.py#L116
"--log", log_level, ] if not use_subprocess: from seal5.transform.infer_types import InferTypes + args = sanitize_args(args) InferTypes(args) else: utils.python( "-m",
seal5/resources/lit.cfg.py#L14
Undefined name 'config' (F821)
/home/runner/work/seal5/seal5/seal5/pass_list.py#L151
"--log", log_level, ] if not use_subprocess: from seal5.transform.simplify_trivial_slices import SimplifyTrivialSlices + args = sanitize_args(args) SimplifyTrivialSlices(args) else: utils.python( "-m",
seal5/resources/lit.cfg.py#L18
Undefined name 'config' (F821)
seal5/transform/process_settings/transform.py#L34
Expected 2 blank lines, found 1 (E302)
/home/runner/work/seal5/seal5/seal5/pass_list.py#L186
"--log", log_level, ] if not use_subprocess: from seal5.transform.explicit_truncations import ExplicitTruncations + args = sanitize_args(args) ExplicitTruncations(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L223
"--yaml", settings.settings_file, ] if not use_subprocess: from seal5.transform.process_settings import ProcessSettings + args = sanitize_args(args) ProcessSettings(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L285
"--log", log_level, ] if not use_subprocess: from seal5.transform.filter_model import FilterModel + args = sanitize_args(args) FilterModel(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L320
"--log", log_level, ] if not use_subprocess: from seal5.transform.drop_unused import DropUnused + args = sanitize_args(args) DropUnused(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L355
"--log", log_level, ] if not use_subprocess: from seal5.transform.detect_registers import main as DetectRegisters + args = sanitize_args(args) DetectRegisters(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L390
"--log", log_level, ] if not use_subprocess: from seal5.transform.collect_raises import CollectRaises + args = sanitize_args(args) CollectRaises(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L425
"--log", log_level, ] if not use_subprocess: from seal5.transform.detect_side_effects import DetectSideEffects + args = sanitize_args(args) DetectSideEffects(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L460
"--log", log_level, ] if not use_subprocess: from seal5.transform.detect_inouts import DetectInouts + args = sanitize_args(args) DetectInouts(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L496
log_level, "--skip-failing", ] if not use_subprocess: from seal5.transform.collect_operand_types import CollectOperandTypes + args = sanitize_args(args) CollectOperandTypes(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L532
"--log", log_level, ] if not use_subprocess: from seal5.transform.collect_register_operands import CollectRegisterOperands + args = sanitize_args(args) CollectRegisterOperands(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L567
"--log", log_level, ] if not use_subprocess: from seal5.transform.collect_immediate_operands import CollectImmediateOperands + args = sanitize_args(args) CollectImmediateOperands(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L602
"--log", log_level, ] if not use_subprocess: from seal5.transform.eliminate_rd_cmp_zero import EliminateRdCmpZero + args = sanitize_args(args) EliminateRdCmpZero(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/pass_list.py#L637
"--log", log_level, ] if not use_subprocess: from seal5.transform.eliminate_mod_rfs import EliminateModRFS + args = sanitize_args(args) EliminateModRFS(args) else: utils.python( "-m",
/home/runner/work/seal5/seal5/seal5/transform/process_settings/transform.py#L28
parser.add_argument("top_level", help="A .m2isarmodel or .seal5model file.") parser.add_argument("--log", default="info", choices=["critical", "error", "warning", "info", "debug"]) parser.add_argument("--output", "-o", type=str, default=None) parser.add_argument("--yaml", type=str, default=None) return parser + def run(args): # initialize logging logging.basicConfig(level=getattr(logging, args.log.upper()))
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/