ITISFoundation / osparc-simcore

🐼 osparc-simcore simulation framework
https://osparc.io
MIT License
46 stars 27 forks source link

Unexpected keyword argument when constructing errors instances (Dynamic-sidecar) #6757

Closed giancarloromeo closed 5 days ago

giancarloromeo commented 1 week ago

Is there an existing issue for this?

Which deploy/s?

No response

Current Behavior

Pylint complains with a bunch of E1123: Unexpected keyword argument errors when invoking the constructor of custom errors:

Linting /home/runner/work/osparc-simcore/osparc-simcore/services/dynamic-sidecar
Using config file /home/runner/work/osparc-simcore/osparc-simcore/.pylintrc
************* Module simcore_service_dynamic_sidecar.modules.container_utils
src/simcore_service_dynamic_sidecar/modules/container_utils.py:41:18: E1123: Unexpected keyword argument 'command' in constructor call (unexpected-keyword-arg)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:41:18: E1123: Unexpected keyword argument 'exit_code' in constructor call (unexpected-keyword-arg)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:41:18: E1123: Unexpected keyword argument 'command_result' in constructor call (unexpected-keyword-arg)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:41:18: E1120: No value for argument 'nessage' in constructor call (no-value-for-parameter)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:81:18: E1123: Unexpected keyword argument 'container_name' in constructor call (unexpected-keyword-arg)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:81:18: E1120: No value for argument 'nessage' in constructor call (no-value-for-parameter)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:86:14: E1123: Unexpected keyword argument 'timeout' in constructor call (unexpected-keyword-arg)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:86:14: E1123: Unexpected keyword argument 'command' in constructor call (unexpected-keyword-arg)
src/simcore_service_dynamic_sidecar/modules/container_utils.py:86:14: E1120: No value for argument 'nessage' in constructor call (no-value-for-parameter)

----------------------------------------------------------------------
Your code has been rated at 9.92/10
Checked 122 files, skipped 0 files

The issues seems in the errors hierarchy and conflicts with init method.

Expected Behavior

No errors.

Steps To Reproduce

cd services/dynamic-services
make pylint

Anything else?

No response