lint code #831
style.yml
on: push
Run linters
16s
Check for License headers
6s
Annotations
8 errors and 1 warning
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/flow/tvm/backend/tvmrt.py#L62
def link_params(self):
value = self.config["link_params"]
return str2bool(value)
def get_tvmc_compile_args(self, out, dump=None):
- return super().get_tvmc_compile_args(out, dump=dump) + get_tvmrt_tvmc_args(system_lib=self.system_lib, link_params=self.link_params)
+ return super().get_tvmc_compile_args(out, dump=dump) + get_tvmrt_tvmc_args(
+ system_lib=self.system_lib, link_params=self.link_params
+ )
def generate(self) -> Tuple[dict, dict]:
artifacts, metrics = super().generate()
assert len(artifacts) == 1 and "default" in artifacts
artifacts = artifacts["default"]
|
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/session/postprocess/postprocesses.py#L669
names = None
if self.groups:
encodings = []
if self.sequences:
names = []
- with pd.read_csv(log_artifact.path, sep=":", names=["pc", "rest"], chunksize=2**22) as reader: # TODO: expose chunksize
+ with pd.read_csv(
+ log_artifact.path, sep=":", names=["pc", "rest"], chunksize=2**22
+ ) as reader: # TODO: expose chunksize
for chunk in reader:
df = transform_df(chunk)
encodings_, names_ = process_df(df)
# input(">")
|
mlonmcu/flow/tvm/backend/tvmrt.py#L67
Line too long (140 > 120 characters) (E501)
|
mlonmcu/session/postprocess/postprocesses.py#L674
Line too long (132 > 120 characters) (E501)
|
mlonmcu/flow/tvm/backend/tvmrt.py#L67
Line too long (140 > 120 characters) (E501)
|
mlonmcu/session/postprocess/postprocesses.py#L674
Line too long (132 > 120 characters) (E501)
|
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/flow/tvm/backend/tvmrt.py#L62
def link_params(self):
value = self.config["link_params"]
return str2bool(value)
def get_tvmc_compile_args(self, out, dump=None):
- return super().get_tvmc_compile_args(out, dump=dump) + get_tvmrt_tvmc_args(system_lib=self.system_lib, link_params=self.link_params)
+ return super().get_tvmc_compile_args(out, dump=dump) + get_tvmrt_tvmc_args(
+ system_lib=self.system_lib, link_params=self.link_params
+ )
def generate(self) -> Tuple[dict, dict]:
artifacts, metrics = super().generate()
assert len(artifacts) == 1 and "default" in artifacts
artifacts = artifacts["default"]
|
/home/runner/work/mlonmcu/mlonmcu/mlonmcu/session/postprocess/postprocesses.py#L669
names = None
if self.groups:
encodings = []
if self.sequences:
names = []
- with pd.read_csv(log_artifact.path, sep=":", names=["pc", "rest"], chunksize=2**22) as reader: # TODO: expose chunksize
+ with pd.read_csv(
+ log_artifact.path, sep=":", names=["pc", "rest"], chunksize=2**22
+ ) as reader: # TODO: expose chunksize
for chunk in reader:
df = transform_df(chunk)
encodings_, names_ = process_df(df)
# input(">")
|
Run linters
The following actions use a deprecated Node.js version and will be forced to run on node20: wearerequired/lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|