Pylint report from report.jinja2

Score

7.35 / 10 (previous score: 7.35 / 10)

Messages

Module ci.test_examples (ci/test_examples.py)

Line Col. Type Symbol ID Obj Message
5 0 warning unused-import W0611
Unused import subprocess
9 0 error import-error E0401
Unable to import 'pytest'
65 8 warning pointless-string-statement W0105 TestExamples.test_mpc
String statement has no effect
73 4 convention missing-function-docstring C0116 TestExamples.test_admm_local
Missing function or method docstring
83 4 convention missing-function-docstring C0116 TestExamples.test_admm_coordinated
Missing function or method docstring
93 4 convention missing-function-docstring C0116 TestExamples.test_exchange_admm
Missing function or method docstring
109 4 convention missing-function-docstring C0116 TestExamples.test_admm_mp_broadcast
Missing function or method docstring

Module /builds/EBC/EBC_all/github_ci/AgentLib-MPC/pylintrc (pylintrc)

Line Col. Type Symbol ID Obj Message
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'print-statement' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'unpacking-in-except' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'old-raise-syntax' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'backtick' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'import-star-module-level' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'apply-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'basestring-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'buffer-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'cmp-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'coerce-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'execfile-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'file-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'long-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'raw_input-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'reduce-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'standarderror-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'unicode-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'xrange-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'coerce-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'delslice-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'getslice-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'setslice-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'no-absolute-import' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'old-division' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'dict-iter-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'dict-view-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'next-method-called' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'metaclass-assignment' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'indexing-exception' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'raising-string' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'reload-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'oct-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'hex-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'nonzero-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'cmp-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'input-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'round-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'intern-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'unichr-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'map-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'zip-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'range-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'filter-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'using-cmp-argument' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'div-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'idiv-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'rdiv-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'exception-message-attribute' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'invalid-str-codec' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'sys-max-int' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'bad-python3-import' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-string-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-str-translate-call' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-itertools-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-types-field' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'next-method-defined' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'dict-items-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'dict-keys-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'dict-values-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-operator-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-urllib-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'xreadlines-attribute' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'deprecated-sys-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'exception-escape' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'comprehension-escape' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.
1 0 refactor useless-option-value R0022
Useless option value for '--disable', 'no-self-use' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.
1 0 warning unknown-option-value W0012
Unknown option value for '--disable', expected a valid pylint message and got 'long-suffix'
1 0 warning unknown-option-value W0012
Unknown option value for '--disable', expected a valid pylint message and got 'old-ne-operator'
1 0 warning unknown-option-value W0012
Unknown option value for '--disable', expected a valid pylint message and got 'old-octal-literal'
1 0 warning unknown-option-value W0012
Unknown option value for '--disable', expected a valid pylint message and got 'non-ascii-bytes-literal'
1 0 warning unknown-option-value W0012
Unknown option value for '--disable', expected a valid pylint message and got 'eq-without-hash'

Module conftest (tests/conftest.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
2 0 error import-error E0401
Unable to import 'pytest'
7 0 convention missing-function-docstring C0116 model_type
Missing function or method docstring
13 0 convention missing-function-docstring C0116 example_casadi_model
Missing function or method docstring
13 25 warning redefined-outer-name W0621 example_casadi_model
Redefining name 'model_type' from outer scope (line 7)

Module test_admm (tests/test_admm.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
22 0 convention invalid-name C0103
Constant name "a" doesn't conform to UPPER_CASE naming style
63 0 convention missing-class-docstring C0115 TestRTADMM
Missing class docstring
74 4 convention missing-function-docstring C0116 TestRTADMM.test_admm_init
Missing function or method docstring
76 8 warning unused-variable W0612 TestRTADMM.test_admm_init
Unused variable 'admm_module'
80 4 convention missing-function-docstring C0116 TestRTADMM.test_comm
Missing function or method docstring
85 13 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _start_executing_callbacks of a client class
86 13 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _start_executing_callbacks of a client class
88 8 warning attribute-defined-outside-init W0201 TestRTADMM.test_comm
Attribute 'admm_module1' defined outside __init__
89 8 warning attribute-defined-outside-init W0201 TestRTADMM.test_comm
Attribute 'admm_module2' defined outside __init__
92 8 warning attribute-defined-outside-init W0201 TestRTADMM.test_comm
Attribute 'counter' defined outside __init__
93 8 warning attribute-defined-outside-init W0201 TestRTADMM.test_comm
Attribute 'counter2' defined outside __init__
109 8 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _solve_local_optimization of a client class
110 12 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _solve_local_optimization_debug of a client class
112 8 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _solve_local_optimization of a client class
113 12 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _solve_local_optimization_debug of a client class
118 19 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _admm_loop of a client class
123 19 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _admm_loop of a client class
127 13 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _process_realtime of a client class
128 13 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _process_realtime of a client class
149 24 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _admm_variables of a client class
150 24 warning protected-access W0212 TestRTADMM.test_comm
Access to a protected member _admm_variables of a client class
163 4 convention missing-function-docstring C0116 TestRTADMM.new_receive
Missing function or method docstring
167 4 convention missing-function-docstring C0116 TestRTADMM.new_receive_2
Missing function or method docstring

Module test_casadi_backend (tests/test_casadi_backend.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
4 0 error import-error E0401
Unable to import 'pytest'
26 0 convention missing-function-docstring C0116 var_ref
Missing function or method docstring
37 0 convention missing-function-docstring C0116 example_casadi_system
Missing function or method docstring
37 48 warning redefined-outer-name W0621 example_casadi_system
Redefining name 'var_ref' from outer scope (line 26)
44 0 convention missing-function-docstring C0116 collocation_discretization
Missing function or method docstring
44 31 warning redefined-outer-name W0621 collocation_discretization
Redefining name 'example_casadi_system' from outer scope (line 37)
55 0 convention missing-function-docstring C0116 example_backend
Missing function or method docstring
55 32 warning redefined-outer-name W0621 example_backend
Redefining name 'var_ref' from outer scope (line 26)
56 4 convention invalid-name C0103 example_backend
Variable name "be" doesn't conform to snake_case naming style
61 0 convention missing-function-docstring C0116 test_optimization_variable
Missing function or method docstring
68 8 warning unused-variable W0612 test_optimization_variable
Unused variable 'optimization_variable'
75 4 warning unused-variable W0612 test_optimization_variable
Unused variable 'optimization_variable_1'
90 8 warning unused-variable W0612 test_optimization_variable
Unused variable 'optimization_variable_3'
97 0 convention missing-function-docstring C0116 test_system
Missing function or method docstring
97 16 warning redefined-outer-name W0621 test_system
Redefining name 'example_casadi_system' from outer scope (line 37)
113 0 convention missing-function-docstring C0116 test_discretization
Missing function or method docstring
114 4 warning redefined-outer-name W0621 test_discretization
Redefining name 'collocation_discretization' from outer scope (line 44)
114 51 warning redefined-outer-name W0621 test_discretization
Redefining name 'example_casadi_system' from outer scope (line 37)
135 0 convention missing-function-docstring C0116 test_add_opt
Missing function or method docstring
135 17 warning redefined-outer-name W0621 test_add_opt
Redefining name 'example_casadi_system' from outer scope (line 37)
154 0 convention missing-function-docstring C0116 test_create_backend
Missing function or method docstring
154 24 warning redefined-outer-name W0621 test_create_backend
Redefining name 'example_backend' from outer scope (line 55)
155 4 convention invalid-name C0103 test_create_backend
Variable name "be" doesn't conform to snake_case naming style
159 13 warning protected-access W0212 test_create_backend
Access to a protected member _mpc_inputs_to_nlp_inputs of a client class

Module test_casadi_ml_model (tests/test_casadi_ml_model.py)

Line Col. Type Symbol ID Obj Message
3 0 error import-error E0401
Unable to import 'pytest'
9 0 convention missing-class-docstring C0115 CasadiMLTestConfig
Missing class docstring
14 0 convention missing-class-docstring C0115 CasadiMLTestModel
Missing class docstring
23 0 convention missing-function-docstring C0116 test_casadi_ml_model
Missing function or method docstring

Module test_mpc (tests/test_mpc.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
6 0 convention wrong-import-order C0411
standard import "import pathlib" should be placed before "import numpy as np"
13 0 warning unused-import W0611
Unused OptimizationBackend imported from agentlib_mpc.optimization_backends.backend
18 0 convention invalid-name C0103
Constant name "a" doesn't conform to UPPER_CASE naming style
24 4 convention missing-function-docstring C0116 TestSampling.test_sample_datetime
Missing function or method docstring
75 4 convention missing-function-docstring C0116 TestSampling.test_get_scalar
Missing function or method docstring
81 4 convention missing-function-docstring C0116 TestSampling.test_series
Missing function or method docstring
82 8 convention invalid-name C0103 TestSampling.test_series
Variable name "sr" doesn't conform to snake_case naming style
94 4 convention missing-function-docstring C0116 TestSampling.test_list
Missing function or method docstring
105 4 convention missing-function-docstring C0116 TestSampling.test_previous_interpolation_method
Missing function or method docstring
152 4 convention invalid-name C0103 TestCasadiMPC.test_CasadiMPC
Method name "test_CasadiMPC" doesn't conform to snake_case naming style
158 14 warning protected-access W0212 TestCasadiMPC.test_CasadiMPC
Access to a protected member _modules of a client class
166 4 convention missing-function-docstring C0116 TestCasadiMPC.test_incomplete_config
Missing function or method docstring

Module test_serialized_ann (tests/test_serialized_ann.py)

Line Col. Type Symbol ID Obj Message
5 0 convention wrong-import-order C0411
standard import "import unittest" should be placed before "import numpy as np"
8 0 convention wrong-import-order C0411
standard import "from pathlib import Path" should be placed before "import numpy as np"
13 0 convention wrong-import-order C0411
third party import "from fixtures.ann import ANNTrainer" should be placed before "from agentlib_mpc.data_structures import ml_model_datatypes"
14 0 convention wrong-import-order C0411
third party import "from fixtures.data_generator import DataGenerator" should be placed before "from agentlib_mpc.data_structures import ml_model_datatypes"

Module test_serialized_gpr (tests/test_serialized_gpr.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
2 0 convention wrong-import-order C0411
standard import "import os" should be placed before "import numpy as np"
3 0 convention wrong-import-order C0411
standard import "import unittest" should be placed before "import numpy as np"
5 0 convention wrong-import-order C0411
standard import "from pathlib import Path" should be placed before "import numpy as np"
10 0 warning unused-import W0611
Unused MLModels imported from agentlib_mpc.models.serialized_ml_model
11 0 convention wrong-import-order C0411
third party import "from fixtures.gpr import GPRTrainer" should be placed before "from agentlib_mpc.data_structures import ml_model_datatypes"
12 0 convention wrong-import-order C0411
third party import "from fixtures.data_generator import DataGenerator" should be placed before "from agentlib_mpc.data_structures import ml_model_datatypes"

Module test_serialized_linreg (tests/test_serialized_linreg.py)

Line Col. Type Symbol ID Obj Message
1 0 convention missing-module-docstring C0114
Missing module docstring
2 0 convention wrong-import-order C0411
standard import "import os" should be placed before "import numpy as np"
3 0 convention wrong-import-order C0411
standard import "import unittest" should be placed before "import numpy as np"
5 0 convention wrong-import-order C0411
standard import "from pathlib import Path" should be placed before "import numpy as np"
11 0 convention wrong-import-order C0411
third party import "from fixtures.linreg import LinRegTrainer" should be placed before "from agentlib_mpc.data_structures import ml_model_datatypes"
12 0 convention wrong-import-order C0411
third party import "from fixtures.data_generator import DataGenerator" should be placed before "from agentlib_mpc.data_structures import ml_model_datatypes"

Metrics

Count per types

Name Count
refactor 67
warning 40
error 4
convention 56

Count per messages

Name Count
useless-option-value 67
unknown-option-value 5
import-error 4
pointless-string-statement 1
missing-function-docstring 26
unused-import 3
missing-module-docstring 6
redefined-outer-name 9
invalid-name 6
missing-class-docstring 3
unused-variable 4
protected-access 14
attribute-defined-outside-init 4
wrong-import-order 15

Count per modules

Name Count
/builds/EBC/EBC_all/github_ci/AgentLib-MPC/pylintrc 72
ci.test_examples 7
conftest 5
test_admm 24
test_casadi_backend 25
test_casadi_ml_model 4
test_mpc 13
test_serialized_ann 4
test_serialized_gpr 7
test_serialized_linreg 6

Count per path

Name Count
pylintrc 72
ci/test_examples.py 7
tests/conftest.py 5
tests/test_admm.py 24
tests/test_casadi_backend.py 25
tests/test_casadi_ml_model.py 4
tests/test_mpc.py 13
tests/test_serialized_ann.py 4
tests/test_serialized_gpr.py 7
tests/test_serialized_linreg.py 6