Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1278/1000) |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==ebcpy.simulationapi.dymola_api:[977:988]
==ebcpy.simulationapi.fmu:[405:412]
))
return super().save_for_reproduction(
title=title,
path=path,
files=files,
**kwargs
) |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==ebcpy.simulationapi.dymola_api:[361:370]
==ebcpy.simulationapi.fmu:[193:201]
savepath = kwargs.pop("savepath", None)
if kwargs:
self.logger.error(
"You passed the following kwargs which "
"are not part of the supported kwargs and "
"have thus no effect: %s.", " ,".join(list(kwargs.keys())))
# Handle multiprocessing
if self.use_mp: |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==ebcpy.simulationapi.dymola_api:[275:284]
==ebcpy.simulationapi.fmu:[194:200]
if kwargs:
self.logger.error(
"You passed the following kwargs which "
"are not part of the supported kwargs and "
"have thus no effect: %s.", " ,".join(list(kwargs.keys())))
def _update_model(self):
# Translate the model and extract all variables,
# if the user wants to: |
1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (ebcpy -> ebcpy.simulationapi.dymola_api) |
1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (ebcpy.data_types -> ebcpy.preprocessing) |
1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (ebcpy -> ebcpy.simulationapi.fmu) |
44 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
DymolaAPI |
Too many instance attributes (21/7) |
155 |
4 |
refactor |
too-many-branches |
R0912 |
DymolaAPI.__init__ |
Too many branches (25/12) |
155 |
4 |
refactor |
too-many-statements |
R0915 |
DymolaAPI.__init__ |
Too many statements (73/50) |
262 |
17 |
refactor |
use-dict-literal |
R1735 |
DymolaAPI.__init__ |
Consider using '{"use_mp": True, "port": port, "time_delay": i * _time_delay_between_starts, ... }' instead of a call to 'dict'. |
266 |
51 |
refactor |
use-dict-literal |
R1735 |
DymolaAPI.__init__ |
Consider using '{"use_mp": False}' instead of a call to 'dict'. |
326 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
349 |
4 |
refactor |
too-many-locals |
R0914 |
DymolaAPI._single_simulation |
Too many local variables (41/15) |
349 |
4 |
refactor |
too-many-return-statements |
R0911 |
DymolaAPI._single_simulation |
Too many return statements (7/6) |
349 |
4 |
refactor |
too-many-branches |
R0912 |
DymolaAPI._single_simulation |
Too many branches (33/12) |
349 |
4 |
refactor |
too-many-statements |
R0915 |
DymolaAPI._single_simulation |
Too many statements (116/50) |
371 |
12 |
warning |
unused-variable |
W0612 |
DymolaAPI._single_simulation |
Unused variable 'idx_worker' |
375 |
45 |
refactor |
use-dict-literal |
R1735 |
DymolaAPI._single_simulation |
Consider using '{"use_mp": True}' instead of a call to 'dict'. |
390 |
12 |
warning |
attribute-defined-outside-init |
W0201 |
DymolaAPI._single_simulation |
Attribute '_model_name' defined outside __init__ |
545 |
21 |
warning |
unspecified-encoding |
W1514 |
DymolaAPI._single_simulation |
Using open without explicitly specifying an encoding |
548 |
19 |
warning |
broad-exception-caught |
W0718 |
DymolaAPI._single_simulation |
Catching too general exception Exception |
553 |
16 |
warning |
broad-exception-raised |
W0719 |
DymolaAPI._single_simulation |
Raising too general exception: Exception |
616 |
12 |
warning |
broad-exception-raised |
W0719 |
DymolaAPI.translate |
Raising too general exception: Exception |
618 |
4 |
refactor |
too-many-arguments |
R0913 |
DymolaAPI.set_compiler |
Too many arguments (6/5) |
683 |
12 |
warning |
broad-exception-raised |
W0719 |
DymolaAPI.import_initial |
Raising too general exception: Exception |
826 |
12 |
convention |
import-outside-toplevel |
C0415 |
DymolaAPI._open_dymola_interface |
Import outside toplevel (dymola.dymola_interface.DymolaInterface) |
827 |
12 |
convention |
import-outside-toplevel |
C0415 |
DymolaAPI._open_dymola_interface |
Import outside toplevel (dymola.dymola_exception.DymolaConnectionException) |
832 |
30 |
convention |
consider-using-f-string |
C0209 |
DymolaAPI._open_dymola_interface |
Formatting a regular string which could be a f-string |
883 |
4 |
refactor |
too-many-arguments |
R0913 |
DymolaAPI.save_for_reproduction |
Too many arguments (6/5) |
883 |
4 |
refactor |
too-many-locals |
R0914 |
DymolaAPI.save_for_reproduction |
Too many local variables (21/15) |
909 |
8 |
convention |
import-outside-toplevel |
C0415 |
DymolaAPI.save_for_reproduction |
Import outside toplevel (ebcpy.utils.reproduction.ReproductionFile, ebcpy.utils.reproduction.CopyFile, ebcpy.utils.reproduction.get_git_information) |
945 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (118/100) |
964 |
28 |
warning |
unspecified-encoding |
W1514 |
DymolaAPI.save_for_reproduction |
Using open without explicitly specifying an encoding |
987 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
DymolaAPI._save_to_fmu |
Either all return statements in a function should return an expression, or none of them should. |
999 |
18 |
convention |
consider-using-f-string |
C0209 |
DymolaAPI._save_to_fmu |
Formatting a regular string which could be a f-string |
1002 |
16 |
warning |
broad-exception-raised |
W0719 |
DymolaAPI._save_to_fmu |
Raising too general exception: Exception |
1166 |
26 |
convention |
consider-using-f-string |
C0209 |
DymolaAPI._check_dymola_instances |
Formatting a regular string which could be a f-string |
1206 |
71 |
refactor |
use-dict-literal |
R1735 |
DymolaAPI._check_restart |
Consider using '{"use_mp": False}' instead of a call to 'dict'. |
1231 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
1232 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
54 |
0 |
refactor |
too-many-arguments |
R0913 |
save_reproduction_archive |
Too many arguments (6/5) |
54 |
0 |
refactor |
too-many-locals |
R0914 |
save_reproduction_archive |
Too many local variables (18/15) |
54 |
0 |
refactor |
too-many-branches |
R0912 |
save_reproduction_archive |
Too many branches (17/12) |
90 |
28 |
error |
no-member |
E1101 |
save_reproduction_archive |
Instance of 'module' has no '__file__' member |
103 |
16 |
warning |
unspecified-encoding |
W1514 |
save_reproduction_archive |
Using open without explicitly specifying an encoding |
125 |
9 |
warning |
unspecified-encoding |
W1514 |
save_reproduction_archive |
Using open without explicitly specifying an encoding |
125 |
64 |
convention |
invalid-name |
C0103 |
save_reproduction_archive |
Variable name "f" doesn't conform to snake_case naming style |
162 |
12 |
refactor |
redefined-argument-from-local |
R1704 |
save_reproduction_archive |
Redefining argument with the local name 'file' |
185 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
get_git_information |
Either all return statements in a function should return an expression, or none of them should. |
207 |
8 |
convention |
import-outside-toplevel |
C0415 |
get_git_information |
Import outside toplevel (git.Repo, git.InvalidGitRepositoryError, git.RemoteReference) |
209 |
8 |
warning |
raise-missing-from |
W0707 |
get_git_information |
Consider explicitly re-raising using 'raise ImportError('Could not save data for reproduction, install GitPython using `pip install GitPython`: ' + str(err)) from err' |
277 |
17 |
warning |
unused-variable |
W0612 |
creat_copy_files_from_dir |
Unused variable 'dirnames' |
279 |
36 |
convention |
unnecessary-dunder-call |
C2801 |
creat_copy_files_from_dir |
Unnecessarily calls dunder method __str__. Use str built-in function. |
295 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/100) |
330 |
4 |
convention |
import-outside-toplevel |
C0415 |
_get_python_package_information |
Import outside toplevel (pkg_resources) |
331 |
43 |
error |
not-an-iterable |
E1133 |
_get_python_package_information |
Non-iterable value pkg_resources.working_set is used in an iterating context |
331 |
25 |
refactor |
unnecessary-comprehension |
R1721 |
_get_python_package_information |
Unnecessary use of a comprehension, use list(pkg_resources.working_set) instead. |
343 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
350 |
16 |
error |
import-error |
E0401 |
_get_python_package_information |
Unable to import 'pypisearch.search' |
350 |
16 |
convention |
import-outside-toplevel |
C0415 |
_get_python_package_information |
Import outside toplevel (pypisearch.search.Search) |
353 |
20 |
warning |
raising-format-tuple |
W0715 |
_get_python_package_information |
Exception arguments suggest string formatting might be intended |
380 |
8 |
warning |
f-string-without-interpolation |
W1309 |
_get_python_reproduction |
Using an f-string that does not have any interpolated variables |
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' |