Merge branch 'staging-newer' of github.com:tum-ei-eda/mlonmcu into st… #384
style.yml
on: push
Run linters
12s
Check for License headers
5s
Annotations
53 errors and 1 warning
mlonmcu/feature/features.py#L625
F-string is missing placeholders (F541)
|
mlonmcu/feature/features.py#L1880
Do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` (E721)
|
mlonmcu/feature/features.py#L1945
Redefinition of unused 'enabled_counters' from line 1935 (F811)
|
mlonmcu/flow/tvm/backend/backend.py#L117
Line too long (128 > 120 characters) (E501)
|
mlonmcu/flow/tvm/backend/tvmcg.py#L27
'.backend.TVMBackend' imported but unused (F401)
|
mlonmcu/platform/mlif/mlif_target.py#L58
Redefinition of unused '_handle_exit' from line 55 (F811)
|
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/riscv/ara.py#L20
import os
import re
from pathlib import Path
from tempfile import TemporaryDirectory
+
# import time
import multiprocessing
from mlonmcu.logging import get_logger
from mlonmcu.config import str2bool
+
# from mlonmcu.feature.features import SUPPORTED_TVM_BACKENDS
from mlonmcu.target.common import cli, execute
from mlonmcu.target.metrics import Metrics
from mlonmcu.target.bench import add_bench_metrics
from .riscv_vext_target import RVVTarget
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L145
F-string is missing placeholders (F541)
|
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/riscv/ara.py#L222
if not self.ara_verilator_tb:
if self.print_outputs:
self.prepare_simulator(elf, *args, cwd=directory, live=True, handle_exit=handle_exit)
else:
self.prepare_simulator(
- elf, *args, cwd=directory, live=False, print_func=lambda *args, **kwargs: None, handle_exit=handle_exit
+ elf,
+ *args,
+ cwd=directory,
+ live=False,
+ print_func=lambda *args, **kwargs: None,
+ handle_exit=handle_exit,
)
def _handle_exit(code, out=None):
assert out is not None
temp = self.parse_exit(out)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\d' (W605)
|
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/target/riscv/ara.py#L234
if temp is None:
temp = code
if handle_exit is not None:
temp = handle_exit(temp, out=out)
return temp
+
# simulation_start = time.time()
if self.print_outputs:
out += self.exec(elf, *args, cwd=directory, live=True, handle_exit=_handle_exit)
else:
out += self.exec(
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\.' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\d' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\s' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\/' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\s' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\d' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\.' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\d' (W605)
|
mlonmcu/platform/tvm/tvm_tune_platform.py#L203
Invalid escape sequence '\s' (W605)
|
mlonmcu/session/postprocess/postprocesses.py#L896
F-string is missing placeholders (F541)
|
mlonmcu/session/postprocess/postprocesses.py#L1194
F-string is missing placeholders (F541)
|
mlonmcu/session/postprocess/postprocesses.py#L1195
F-string is missing placeholders (F541)
|
mlonmcu/session/postprocess/postprocesses.py#L1197
F-string is missing placeholders (F541)
|
mlonmcu/session/postprocess/postprocesses.py#L1202
F-string is missing placeholders (F541)
|
mlonmcu/session/run.py#L488
Local variable 'ex' is assigned to but never used (F841)
|
mlonmcu/setup/tasks/llvm.py#L61
Local variable 'candidate_exts' is assigned to but never used (F841)
|
mlonmcu/setup/tasks/llvm.py#L67
F-string is missing placeholders (F541)
|
mlonmcu/setup/tasks/llvm.py#L68
F-string is missing placeholders (F541)
|
mlonmcu/setup/tasks/ovpsim.py#L30
'.common._validate_gcc' imported but unused (F401)
|
mlonmcu/setup/tasks/spike.py#L117
F-string is missing placeholders (F541)
|
mlonmcu/setup/tasks/tvm.py#L211
Local variable 'tvmName' is assigned to but never used (F841)
|
mlonmcu/setup/tasks/tvm.py#L212
Local variable 'tvmSrcDir' is assigned to but never used (F841)
|
mlonmcu/target/riscv/ara.py#L227
Line too long (123 > 120 characters) (E501)
|
mlonmcu/target/riscv/corev_ovpsim.py#L27
'mlonmcu.feature.features.SUPPORTED_TVM_BACKENDS' imported but unused (F401)
|
mlonmcu/target/riscv/corev_ovpsim.py#L32
'.util.update_extensions' imported but unused (F401)
|
mlonmcu/target/riscv/corev_ovpsim.py#L93
F-string is missing placeholders (F541)
|
mlonmcu/target/riscv/corev_ovpsim.py#L101
F-string is missing placeholders (F541)
|
mlonmcu/target/riscv/corev_ovpsim.py#L249
Undefined name 'exec_timeout' (F821)
|
mlonmcu/target/riscv/cv32e40p.py#L23
'csv' imported but unused (F401)
|
mlonmcu/target/riscv/cv32e40p.py#L29
'mlonmcu.config.str2list' imported but unused (F401)
|
mlonmcu/target/riscv/cv32e40p.py#L30
'mlonmcu.artifact.Artifact' imported but unused (F401)
|
mlonmcu/target/riscv/cv32e40p.py#L30
'mlonmcu.artifact.ArtifactFormat' imported but unused (F401)
|
mlonmcu/target/riscv/cv32e40p.py#L31
'mlonmcu.feature.features.SUPPORTED_TVM_BACKENDS' imported but unused (F401)
|
mlonmcu/target/riscv/spike.py#L27
'mlonmcu.config.str2bool' imported but unused (F401)
|
mlonmcu/target/riscv/vicuna.py#L28
'mlonmcu.config.str2bool' imported but unused (F401)
|
mlonmcu/target/riscv/vicuna.py#L35
'.util.update_extensions' imported but unused (F401)
|
mlonmcu/testing/riscv_toolchain.py#L9
'.helpers._test_compile_platform' imported but unused (F401)
|
mlonmcu/testing/riscv_toolchain.py#L83
Undefined name 'MODEL_FRONTENDS' (F821)
|
mlonmcu/testing/riscv_toolchain.py#L85
Undefined name 'TARGET_PLATFORMS' (F821)
|
mlonmcu/testing/riscv_toolchain.py#L94
Undefined name '_check_features' (F821)
|
mlonmcu/testing/riscv_toolchain.py#L95
Undefined name '_init_run' (F821)
|
mlonmcu/testing/riscv_toolchain.py#L103
Local variable 'arch' is assigned to but never used (F841)
|
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/
|