Pylint report from report.jinja2

Score

9.51 / 10 (previous score: 9.50 / 10)

Messages

Module aixcalibuha.calibration.calibrator (aixcalibuha/calibration/calibrator.py)

Line Col. Type Symbol ID Obj Message
20 0 refactor too-many-instance-attributes R0902 Calibrator
Too many instance attributes (24/7)
214 26 refactor unnecessary-comprehension R1721 Calibrator.obj
Unnecessary use of a comprehension, use dict(zip(initial_names, xk_descaled.values)) instead.
255 4 refactor too-many-locals R0914 Calibrator.mp_obj
Too many local variables (20/15)
273 16 refactor unnecessary-comprehension R1721 Calibrator.mp_obj
Unnecessary use of a comprehension, use dict(zip(initial_names, xk_descaled.values)) instead.
310 23 warning unused-variable W0612 Calibrator.mp_obj
Unused variable 'unweighted_objective'
418 12 warning broad-exception-raised W0719 Calibrator.calibrate
Raising too general exception: Exception
489 17 warning unspecified-encoding W1514 Calibrator.save_results
Using open without explicitly specifying an encoding
492 4 refactor too-many-locals R0914 Calibrator.validate
Too many local variables (17/15)

Module aixcalibuha.calibration.multi_class_calibrator (aixcalibuha/calibration/multi_class_calibrator.py)

Line Col. Type Symbol ID Obj Message
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.morris)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.morris)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha.calibration -> aixcalibuha.calibration.multi_class_calibrator)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.sensitivity_analyzer -> aixcalibuha.sensitivity_analysis.plotting -> aixcalibuha.utils.visualizer)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.sensitivity_analyzer -> aixcalibuha.utils)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.calibration -> aixcalibuha.calibration.calibrator -> aixcalibuha.utils.visualizer)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.plotting -> aixcalibuha.utils.visualizer)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.sensitivity_analysis.plotting -> aixcalibuha.utils.visualizer)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.fast)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.pawn)
1 0 refactor cyclic-import R0401
Cyclic import (aixcalibuha -> aixcalibuha.sensitivity_analysis -> aixcalibuha.sensitivity_analysis.sobol -> aixcalibuha.sensitivity_analysis.plotting -> aixcalibuha.utils.visualizer)
13 0 refactor too-many-instance-attributes R0902 MultipleClassCalibrator
Too many instance attributes (13/7)
53 4 refactor too-many-arguments R0913 MultipleClassCalibrator.__init__
Too many arguments (6/5)
62 28 convention consider-using-f-string C0209 MultipleClassCalibrator.__init__
Formatting a regular string which could be a f-string
94 4 refactor too-many-locals R0914 MultipleClassCalibrator.calibrate
Too many local variables (16/15)
94 4 refactor too-many-branches R0912 MultipleClassCalibrator.calibrate
Too many branches (14/12)
198 8 refactor no-else-return R1705 MultipleClassCalibrator._apply_start_time_method
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
261 28 convention consider-using-f-string C0209 MultipleClassCalibrator.check_intersection_of_tuner_parameters
Formatting a regular string which could be a f-string

Module aixcalibuha.data_types (aixcalibuha/data_types.py)

Line Col. Type Symbol ID Obj Message
20 0 refactor too-many-instance-attributes R0902 Goals
Too many instance attributes (9/7)
68 4 refactor too-many-branches R0912 Goals.__init__
Too many branches (17/12)
506 0 refactor too-many-instance-attributes R0902 CalibrationClass
Too many instance attributes (14/7)
547 4 refactor too-many-arguments R0913 CalibrationClass.__init__
Too many arguments (7/5)

Module aixcalibuha.sensitivity_analysis.fast (aixcalibuha/sensitivity_analysis/fast.py)

Line Col. Type Symbol ID Obj Message
32 8 convention invalid-name C0103 FASTAnalyzer.__init__
Attribute name "M" doesn't conform to snake_case naming style

Module aixcalibuha.sensitivity_analysis.pawn (aixcalibuha/sensitivity_analysis/pawn.py)

Line Col. Type Symbol ID Obj Message
46 8 convention invalid-name C0103 PAWNAnalyzer.__init__
Attribute name "s" doesn't conform to snake_case naming style
51 8 convention invalid-name C0103 PAWNAnalyzer.__init__
Attribute name "M" doesn't conform to snake_case naming style
106 19 error unexpected-keyword-arg E1123 PAWNAnalyzer.generate_samples
Unexpected keyword argument 'calc_second_order' in function call
110 19 error unexpected-keyword-arg E1123 PAWNAnalyzer.generate_samples
Unexpected keyword argument 'calc_second_order' in function call

Module aixcalibuha.sensitivity_analysis.plotting (aixcalibuha/sensitivity_analysis/plotting.py)

Line Col. Type Symbol ID Obj Message
13 0 refactor too-many-locals R0914 plot_single
Too many local variables (18/15)
78 0 refactor too-many-locals R0914 plot_second_order
Too many local variables (22/15)
212 60 warning protected-access W0212 plot_single_second_order
Access to a protected member _suptitle of a client class
324 0 refactor too-many-locals R0914 plot_time_dependent
Too many local variables (27/15)
381 4 refactor too-many-nested-blocks R1702 plot_time_dependent
Too many nested blocks (6/5)
414 0 refactor too-many-locals R0914 plot_parameter_verbose
Too many local variables (25/15)

Module aixcalibuha.sensitivity_analysis.sensitivity_analyzer (aixcalibuha/sensitivity_analysis/sensitivity_analyzer.py)

Line Col. Type Symbol ID Obj Message
86 0 refactor too-many-instance-attributes R0902 SenAnalyzer
Too many instance attributes (12/7)
372 4 refactor too-many-locals R0914 SenAnalyzer.run
Too many local variables (35/15)
372 4 refactor too-many-branches R0912 SenAnalyzer.run
Too many branches (21/12)
372 4 refactor too-many-statements R0915 SenAnalyzer.run
Too many statements (75/50)
664 4 refactor too-many-locals R0914 SenAnalyzer.run_time_dependent
Too many local variables (21/15)
754 4 refactor too-many-arguments R0913 SenAnalyzer._analyze_tstep_df
Too many arguments (6/5)
866 4 refactor too-many-arguments R0913 SenAnalyzer.save_for_reproduction
Too many arguments (6/5)

Module aixcalibuha.sensitivity_analysis.sobol (aixcalibuha/sensitivity_analysis/sobol.py)

Line Col. Type Symbol ID Obj Message
105 4 refactor too-many-locals R0914 SobolAnalyzer._conv_local_results
Too many local variables (18/15)
138 4 refactor inconsistent-return-statements R1710 SobolAnalyzer._get_res_dict
Either all return statements in a function should return an expression, or none of them should.

Module aixcalibuha.utils.configuration (aixcalibuha/utils/configuration.py)

Line Col. Type Symbol ID Obj Message
41 0 convention line-too-long C0301
Line too long (110/100)
42 0 convention line-too-long C0301
Line too long (116/100)
44 0 convention line-too-long C0301
Line too long (103/100)
46 0 convention line-too-long C0301
Line too long (111/100)
48 0 convention line-too-long C0301
Line too long (124/100)
188 9 warning unspecified-encoding W1514 write_config
Using open without explicitly specifying an encoding
203 9 warning unspecified-encoding W1514 read_config
Using open without explicitly specifying an encoding

Module aixcalibuha.utils.visualizer (aixcalibuha/utils/visualizer.py)

Line Col. Type Symbol ID Obj Message
32 8 refactor consider-using-min-builtin R1730 short_name
Consider using 'num_dots = min(num_dots, 3)' instead of unnecessary if block
40 0 refactor too-many-instance-attributes R0902 CalibrationLogger
Too many instance attributes (12/7)
92 28 warning nested-min-max W3301 CalibrationLogger._set_prec_and_with_for_tuner_paras
Do not use nested call of 'max'; it's possible to do 'max(bounds_max, abs(bounds_min))' instead
132 0 warning unused-argument W0613 CalibrationLogger.save_calibration_result
Unused argument 'kwargs'
160 62 warning unused-argument W0613 CalibrationLogger.calibrate_new_class
Unused argument 'for_validation'
191 4 convention missing-function-docstring C0116 CalibrationLogger.tuner_paras
Missing function or method docstring
254 0 warning unused-argument W0613 CalibrationLogger.log_intersection_of_tuners
Unused argument 'kwargs'
278 22 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_names_as_string
Formatting a regular string which could be a f-string
285 27 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_names_as_string
Formatting a regular string which could be a f-string
287 23 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_names_as_string
Formatting a regular string which could be a f-string
315 22 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_values_as_string
Formatting a regular string which could be a f-string
318 27 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_values_as_string
Formatting a regular string which could be a f-string
322 23 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_values_as_string
Formatting a regular string which could be a f-string
325 27 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_values_as_string
Formatting a regular string which could be a f-string
328 27 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_values_as_string
Formatting a regular string which could be a f-string
329 43 convention consider-using-f-string C0209 CalibrationLogger._get_tuner_para_values_as_string
Formatting a regular string which could be a f-string
337 0 refactor too-many-instance-attributes R0902 CalibrationVisualizer
Too many instance attributes (17/7)
521 48 convention consider-using-f-string C0209 CalibrationVisualizer.save_calibration_result
Formatting a regular string which could be a f-string
522 46 convention consider-using-f-string C0209 CalibrationVisualizer.save_calibration_result
Formatting a regular string which could be a f-string
536 13 warning unspecified-encoding W1514 CalibrationVisualizer.save_calibration_result
Using open without explicitly specifying an encoding
640 4 refactor too-many-locals R0914 CalibrationVisualizer._plot_goals
Too many local variables (16/15)

Module /builds/EBC/EBC_all/github_ci/AixCaliBuHA/pylintrc (pylintrc)

Line Col. Type Symbol ID Obj Message
1 0 error unrecognized-option E0015
Unrecognized option found: no-space-check
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 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 'locally-enabled'
1 0 warning unknown-option-value W0012
Unknown option value for '--disable', expected a valid pylint message and got 'eq-without-hash'

Metrics

Count per types

Name Count
error 3
refactor 103
warning 17
convention 22

Count per messages

Name Count
unrecognized-option 1
useless-option-value 60
unknown-option-value 6
too-many-instance-attributes 7
too-many-branches 3
too-many-arguments 4
consider-using-min-builtin 1
nested-min-max 1
unused-argument 3
missing-function-docstring 1
consider-using-f-string 13
unspecified-encoding 4
too-many-locals 11
line-too-long 5
protected-access 1
too-many-nested-blocks 1
too-many-statements 1
invalid-name 3
unexpected-keyword-arg 2
inconsistent-return-statements 1
unnecessary-comprehension 2
unused-variable 1
broad-exception-raised 1
no-else-return 1
cyclic-import 11

Count per modules

Name Count
/builds/EBC/EBC_all/github_ci/AixCaliBuHA/pylintrc 67
aixcalibuha.data_types 4
aixcalibuha.utils.visualizer 21
aixcalibuha.utils.configuration 7
aixcalibuha.sensitivity_analysis.plotting 6
aixcalibuha.sensitivity_analysis.sensitivity_analyzer 7
aixcalibuha.sensitivity_analysis.fast 1
aixcalibuha.sensitivity_analysis.pawn 4
aixcalibuha.sensitivity_analysis.sobol 2
aixcalibuha.calibration.calibrator 8
aixcalibuha.calibration.multi_class_calibrator 18

Count per path

Name Count
pylintrc 67
aixcalibuha/data_types.py 4
aixcalibuha/utils/visualizer.py 21
aixcalibuha/utils/configuration.py 7
aixcalibuha/sensitivity_analysis/plotting.py 6
aixcalibuha/sensitivity_analysis/sensitivity_analyzer.py 7
aixcalibuha/sensitivity_analysis/fast.py 1
aixcalibuha/sensitivity_analysis/pawn.py 4
aixcalibuha/sensitivity_analysis/sobol.py 2
aixcalibuha/calibration/calibrator.py 8
aixcalibuha/calibration/multi_class_calibrator.py 18