Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
2 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
4 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Union, Optional" should be placed before "import pydantic" |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils' |
10 |
0 |
refactor |
too-few-public-methods |
R0903 |
KPI |
Too few public methods (1/2) |
29 |
4 |
convention |
missing-class-docstring |
C0115 |
KPI.Config |
Missing class docstring |
29 |
4 |
refactor |
too-few-public-methods |
R0903 |
KPI.Config |
Too few public methods (0/2) |
33 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
51 |
8 |
convention |
invalid-name |
C0103 |
KPISeries._get_dt |
Variable name "dt" doesn't conform to snake_case naming style |
52 |
8 |
convention |
invalid-name |
C0103 |
KPISeries._get_dt |
Attribute name "dt" doesn't conform to snake_case naming style |
72 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (118/100) |
144 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
191 |
4 |
refactor |
too-many-arguments |
R0913 |
FlexibilityKPIs.calculate |
Too many arguments (10/5) |
196 |
12 |
warning |
unused-argument |
W0613 |
FlexibilityKPIs.calculate |
Unused argument 'mpc_time_grid' |
210 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (138/100) |
218 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (159/100) |
229 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/100) |
233 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
240 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (144/100) |
262 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
280 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
291 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (158/100) |
327 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
355 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
FlexibilityData |
Too many instance attributes (10/7) |
411 |
4 |
convention |
missing-class-docstring |
C0115 |
FlexibilityData.Config |
Missing class docstring |
411 |
4 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityData.Config |
Too few public methods (0/2) |
414 |
4 |
refactor |
too-many-arguments |
R0913 |
FlexibilityData.__init__ |
Too many arguments (6/5) |
418 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
492 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityData.get_kpis |
Missing function or method docstring |
493 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
4 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Union, Optional, Dict, Any, List, Type" should be placed before "import pandas as pd" |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
6 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from pathlib import Path" should be placed before "import pandas as pd" |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.utils' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.modules.simulation.simulator' |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.modules.mpc' |
11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils' |
12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils.analysis' |
31 |
4 |
convention |
invalid-name |
C0103 |
load_indicator |
Variable name "df" doesn't conform to snake_case naming style |
45 |
4 |
convention |
invalid-name |
C0103 |
load_market |
Variable name "df" doesn't conform to snake_case naming style |
49 |
0 |
convention |
missing-class-docstring |
C0115 |
Results |
Missing class docstring |
49 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
Results |
Too many instance attributes (29/7) |
84 |
4 |
refactor |
too-many-arguments |
R0913 |
Results.__init__ |
Too many arguments (6/5) |
89 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
115 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/100) |
124 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
129 |
21 |
warning |
unspecified-encoding |
W1514 |
Results._load_flex_config |
Using open without explicitly specifying an encoding |
129 |
47 |
convention |
invalid-name |
C0103 |
Results._load_flex_config |
Variable name "f" doesn't conform to snake_case naming style |
153 |
20 |
warning |
unspecified-encoding |
W1514 |
Results._get_config_filenames |
Using open without explicitly specifying an encoding |
218 |
17 |
warning |
unspecified-encoding |
W1514 |
Results._load_simulator_config |
Using open without explicitly specifying an encoding |
218 |
54 |
convention |
invalid-name |
C0103 |
Results._load_simulator_config |
Variable name "f" doesn't conform to snake_case naming style |
290 |
33 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
306 |
33 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
372 |
12 |
convention |
invalid-name |
C0103 |
Results.convert_timescale_of_dataframe_index |
Variable name "df" doesn't conform to snake_case naming style |
409 |
23 |
refactor |
consider-using-in |
R1714 |
Results.get_intersection_mpcs_sim.get_id_alias_name_dict_element |
Consider merging these comparisons with 'in' by using 'alias in (var.alias, var.name)'. Use a set instead if elements are hashable. |
441 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
450 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
2 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from enum import Enum" should be placed before "import pydantic" |
3 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from pathlib import Path" should be placed before "import pydantic" |
4 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Optional, Union" should be placed before "import pydantic" |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.errors' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
12 |
0 |
convention |
missing-class-docstring |
C0115 |
ForcedOffers |
Missing class docstring |
13 |
4 |
convention |
invalid-name |
C0103 |
ForcedOffers |
Class constant name "positive" doesn't conform to UPPER_CASE naming style |
14 |
4 |
convention |
invalid-name |
C0103 |
ForcedOffers |
Class constant name "negative" doesn't conform to UPPER_CASE naming style |
17 |
0 |
refactor |
too-few-public-methods |
R0903 |
ShadowMPCConfigGeneratorConfig |
Too few public methods (1/2) |
22 |
5 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
36 |
4 |
convention |
missing-function-docstring |
C0116 |
ShadowMPCConfigGeneratorConfig.assign_weights_to_flex |
Missing function or method docstring |
38 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
40 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
47 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityMarketConfig |
Too few public methods (0/2) |
59 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityIndicatorConfig |
Too few public methods (1/2) |
71 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorConfig.check_file_extension |
Missing function or method docstring |
72 |
37 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
76 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
159 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'astor' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'black' |
8 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import json" should be placed before "import astor" |
9 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from copy import deepcopy" should be placed before "import astor" |
10 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from pathlib import Path" should be placed before "import astor" |
11 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Union" should be placed before "import astor" |
12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.datamodels' |
15 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.errors' |
16 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.module' |
17 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.utils' |
18 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
19 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.models.casadi_model' |
20 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.modules.mpc_full' |
24 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
30 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
FlexAgentGenerator |
Too many instance attributes (17/7) |
33 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (120/100) |
35 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
36 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
129 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
152 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
164 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
170 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
185 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
190 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
190 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator.generate_flex_agents |
Using open without explicitly specifying an encoding |
190 |
107 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator.generate_flex_agents |
Variable name "f" doesn't conform to snake_case naming style |
196 |
28 |
warning |
unnecessary-lambda |
W0108 |
FlexAgentGenerator.generate_flex_agents.<lambda> |
Lambda may not be necessary |
206 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (110/100) |
239 |
17 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator.append_module_and_dump_agent |
Using open without explicitly specifying an encoding |
241 |
17 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator.append_module_and_dump_agent |
Variable name "f" doesn't conform to snake_case naming style |
290 |
4 |
refactor |
too-many-branches |
R0912 |
FlexAgentGenerator.adapt_mpc_module_config |
Too many branches (18/12) |
305 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (147/100) |
358 |
11 |
convention |
unidiomatic-typecheck |
C0123 |
FlexAgentGenerator.adapt_mpc_module_config |
Use isinstance() rather than type() for a typecheck. |
488 |
16 |
convention |
unnecessary-dunder-call |
C2801 |
FlexAgentGenerator.adapt_market_config |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
498 |
4 |
refactor |
too-many-locals |
R0914 |
FlexAgentGenerator._generate_flex_model_definition |
Too many local variables (17/15) |
499 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
519 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator._generate_flex_model_definition |
Using open without explicitly specifying an encoding |
519 |
47 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator._generate_flex_model_definition |
Variable name "f" doesn't conform to snake_case naming style |
527 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (149/100) |
532 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (149/100) |
537 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (149/100) |
563 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator._generate_flex_model_definition |
Using open without explicitly specifying an encoding |
563 |
39 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator._generate_flex_model_definition |
Variable name "f" doesn't conform to snake_case naming style |
594 |
4 |
refactor |
too-many-branches |
R0912 |
FlexAgentGenerator.run_config_validations |
Too many branches (17/12) |
600 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
601 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (117/100) |
602 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/100) |
605 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/100) |
614 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (153/100) |
616 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
619 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
620 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
627 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (160/100) |
629 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
636 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (157/100) |
637 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/100) |
639 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
641 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/100) |
642 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (175/100) |
642 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
FlexAgentGenerator.run_config_validations |
Use lazy % formatting in logging functions |
644 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
645 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
646 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
660 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
660 |
37 |
warning |
f-string-without-interpolation |
W1309 |
FlexAgentGenerator.run_config_validations |
Using an f-string that does not have any interpolated variables |
664 |
41 |
warning |
f-string-without-interpolation |
W1309 |
FlexAgentGenerator.run_config_validations |
Using an f-string that does not have any interpolated variables |
665 |
59 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
668 |
104 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
668 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
669 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/100) |
675 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (147/100) |
675 |
24 |
warning |
logging-fstring-interpolation |
W1203 |
FlexAgentGenerator.run_config_validations |
Use lazy % formatting in logging functions |
680 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (162/100) |
680 |
24 |
warning |
logging-fstring-interpolation |
W1203 |
FlexAgentGenerator.run_config_validations |
Use lazy % formatting in logging functions |
682 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
698 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator.adapt_sim_results_path |
Using open without explicitly specifying an encoding |
698 |
50 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator.adapt_sim_results_path |
Variable name "f" doesn't conform to snake_case naming style |
707 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
5 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from pathlib import Path" should be placed before "import numpy as np" |
6 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Optional" should be placed before "import numpy as np" |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib' |
14 |
0 |
convention |
missing-class-docstring |
C0115 |
InputsForCorrectFlexCosts |
Missing class docstring |
14 |
0 |
refactor |
too-few-public-methods |
R0903 |
InputsForCorrectFlexCosts |
Too few public methods (0/2) |
18 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (152/100) |
31 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
35 |
0 |
convention |
missing-class-docstring |
C0115 |
InputsForCalculateFlexCosts |
Missing class docstring |
35 |
0 |
refactor |
too-few-public-methods |
R0903 |
InputsForCalculateFlexCosts |
Too few public methods (1/2) |
50 |
4 |
convention |
missing-function-docstring |
C0116 |
InputsForCalculateFlexCosts.validate_constant_price |
Missing function or method docstring |
50 |
4 |
error |
no-self-argument |
E0213 |
InputsForCalculateFlexCosts.validate_constant_price |
Method 'validate_constant_price' should have "self" as first argument |
52 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/100) |
52 |
12 |
warning |
broad-exception-raised |
W0719 |
InputsForCalculateFlexCosts.validate_constant_price |
Raising too general exception: Exception |
53 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/100) |
54 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
63 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityIndicatorModuleConfig |
Missing class docstring |
63 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityIndicatorModuleConfig |
Too few public methods (1/2) |
131 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
135 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
201 |
30 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
216 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
218 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModuleConfig.check_results_file_extension |
Missing function or method docstring |
227 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityIndicatorModule |
Missing class docstring |
248 |
8 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.__init__ |
Attribute name "df" doesn't conform to snake_case naming style |
250 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.register_callbacks |
Missing function or method docstring |
260 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.process |
Missing function or method docstring |
263 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.callback |
Missing function or method docstring |
263 |
4 |
refactor |
too-many-branches |
R0912 |
FlexibilityIndicatorModule.callback |
Too many branches (16/12) |
285 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
288 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/100) |
290 |
16 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.callback |
Variable name "n" doesn't conform to snake_case naming style |
291 |
16 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.callback |
Variable name "ts" doesn't conform to snake_case naming style |
294 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/100) |
295 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
314 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (116/100) |
332 |
28 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.write_results |
Argument name "df" doesn't conform to snake_case naming style |
332 |
46 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.write_results |
Argument name "ts" doesn't conform to snake_case naming style |
332 |
57 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.write_results |
Argument name "n" doesn't conform to snake_case naming style |
332 |
4 |
refactor |
too-many-branches |
R0912 |
FlexibilityIndicatorModule.write_results |
Too many branches (13/12) |
338 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
400 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (138/100) |
402 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (186/100) |
416 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (164/100) |
432 |
4 |
refactor |
too-many-arguments |
R0913 |
FlexibilityIndicatorModule.send_flex_offer |
Too many arguments (8/5) |
441 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
446 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (113/100) |
448 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (113/100) |
479 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
481 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
482 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
484 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
484 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
FlexibilityIndicatorModule.check_power_end_deviation |
Use lazy % formatting in logging functions |
491 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
491 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
FlexibilityIndicatorModule.check_power_end_deviation |
Use lazy % formatting in logging functions |
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 'numpy' |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
4 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from pathlib import Path" should be placed before "import numpy as np" |
5 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Optional, Union" should be placed before "import numpy as np" |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.datamodels' |
13 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityMarketModuleConfig |
Missing class docstring |
13 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityMarketModuleConfig |
Too few public methods (1/2) |
49 |
30 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
56 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModuleConfig.check_results_file_extension |
Missing function or method docstring |
71 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (116/100) |
76 |
8 |
warning |
attribute-defined-outside-init |
W0201 |
FlexibilityMarketModule.set_random_seed |
Attribute 'random_generator' defined outside __init__ |
88 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModule.register_callbacks |
Missing function or method docstring |
107 |
8 |
warning |
attribute-defined-outside-init |
W0201 |
FlexibilityMarketModule.register_callbacks |
Attribute 'cooldown_ticker' defined outside __init__ |
113 |
8 |
convention |
invalid-name |
C0103 |
FlexibilityMarketModule.write_results |
Variable name "df" doesn't conform to snake_case naming style |
123 |
62 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.random_flexibility_callback |
Unused argument 'name' |
126 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/100) |
132 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
138 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
143 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
147 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
157 |
20 |
warning |
attribute-defined-outside-init |
W0201 |
FlexibilityMarketModule.random_flexibility_callback |
Attribute 'cooldown_ticker' defined outside __init__ |
164 |
62 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.single_flexibility_callback |
Unused argument 'name' |
170 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (111/100) |
171 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
173 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
192 |
8 |
warning |
unnecessary-pass |
W0107 |
FlexibilityMarketModule.custom_flexibility_callback |
Unnecessary pass statement |
194 |
29 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.dummy_callback |
Unused argument 'inp' |
194 |
49 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.dummy_callback |
Unused argument 'name' |
205 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModule.process |
Missing function or method docstring |
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 'agentlib.core.datamodels' |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.modules' |
5 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
8 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityShadowMPC |
Missing class docstring |
17 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMPC.register_callbacks |
Missing function or method docstring |
57 |
12 |
convention |
consider-using-dict-items |
C0206 |
FlexibilityShadowMPC.calc_flex_callback |
Consider iterating with .items() |
57 |
16 |
refactor |
redefined-argument-from-local |
R1704 |
FlexibilityShadowMPC.calc_flex_callback |
Redefining argument with the local name 'name' |
57 |
24 |
convention |
consider-iterating-dictionary |
C0201 |
FlexibilityShadowMPC.calc_flex_callback |
Consider iterating the dictionary directly instead of calling .keys() |
60 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMPC.process |
Missing function or method docstring |
65 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityShadowMINLPMPC |
Missing class docstring |
74 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMINLPMPC.register_callbacks |
Missing function or method docstring |
84 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
114 |
12 |
convention |
consider-using-dict-items |
C0206 |
FlexibilityShadowMINLPMPC.calc_flex_callback |
Consider iterating with .items() |
114 |
16 |
refactor |
redefined-argument-from-local |
R1704 |
FlexibilityShadowMINLPMPC.calc_flex_callback |
Redefining argument with the local name 'name' |
114 |
24 |
convention |
consider-iterating-dictionary |
C0201 |
FlexibilityShadowMINLPMPC.calc_flex_callback |
Consider iterating the dictionary directly instead of calling .keys() |
117 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMINLPMPC.process |
Missing function or method docstring |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
1 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
2 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.errors' |
4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.optimization_backends.casadi_.minlp_cia' |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.optimization_backends.casadi_.core.casadi_backend' |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
7 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
12 |
4 |
warning |
raise-missing-from |
W0707 |
|
Consider explicitly re-raising using 'except ImportError as exc' and 'raise OptionalDependencyError(used_object='Pycombina', dependency_install='.\\ after cloning pycombina. Instructions: https://pycombina.readthedocs.io/en/latest/install.html#') from exc' |
14 |
29 |
warning |
anomalous-backslash-in-string |
W1401 |
|
Anomalous backslash in string: '\ '. String constant might be missing an r prefix. |
19 |
0 |
convention |
missing-class-docstring |
C0115 |
ConstrainedCIABackendConfig |
Missing class docstring |
19 |
0 |
refactor |
too-few-public-methods |
R0903 |
ConstrainedCIABackendConfig |
Too few public methods (0/2) |
27 |
4 |
convention |
missing-class-docstring |
C0115 |
ConstrainedCIABackendConfig.Config |
Missing class docstring |
27 |
4 |
refactor |
too-few-public-methods |
R0903 |
ConstrainedCIABackendConfig.Config |
Too few public methods (0/2) |
32 |
0 |
convention |
missing-class-docstring |
C0115 |
ConstrainedCasADiCIABackend |
Missing class docstring |
32 |
0 |
refactor |
too-few-public-methods |
R0903 |
ConstrainedCasADiCIABackend |
Too few public methods (1/2) |
36 |
4 |
warning |
useless-parent-delegation |
W0246 |
ConstrainedCasADiCIABackend.__init__ |
Useless parent or super() delegation in method '__init__' |
39 |
4 |
convention |
missing-function-docstring |
C0116 |
ConstrainedCasADiCIABackend.do_pycombina |
Missing function or method docstring |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.modules' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.module' |
25 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/100) |
36 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/100) |
43 |
11 |
convention |
invalid-name |
C0103 |
get_module_type_matching_dict |
Variable name "v" doesn't conform to snake_case naming style |
56 |
8 |
convention |
invalid-name |
C0103 |
get_module_type_matching_dict |
Variable name "v" doesn't conform to snake_case naming style |
74 |
0 |
refactor |
inconsistent-return-statements |
R1710 |
get_orig_module_type |
Either all return statements in a function should return an expression, or none of them should. |
91 |
4 |
warning |
useless-else-on-loop |
W0120 |
get_module |
Else clause on loop without a break statement, remove the else and de-indent all the code inside it |
112 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (120/100) |
116 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
118 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (110/100) |
125 |
0 |
convention |
missing-function-docstring |
C0116 |
get_class_from_file |
Missing function or method docstring |
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 'pandas' |
3 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import get_args, Union, Optional" should be placed before "import pandas as pd" |
4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'dash' |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'plotly' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils.analysis' |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils.plotting.interactive' |
12 |
0 |
refactor |
consider-using-from-import |
R0402 |
|
Use 'from agentlib_flexquant.data_structures import flex_results' instead |
18 |
0 |
refactor |
too-few-public-methods |
R0903 |
CustomBound |
Too few public methods (0/2) |
22 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
23 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
42 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
Dashboard |
Too many instance attributes (8/7) |
59 |
4 |
refactor |
too-many-arguments |
R0913 |
Dashboard.__init__ |
Too many arguments (7/5) |
83 |
8 |
convention |
invalid-name |
C0103 |
Dashboard.__init__ |
Attribute name "LINE_PROPERTIES" doesn't conform to snake_case naming style |
120 |
12 |
refactor |
unnecessary-comprehension |
R1721 |
Dashboard.__init__ |
Unnecessary use of a comprehension, use list(self.intersection_mpcs_sim.keys()) instead. |
120 |
28 |
convention |
consider-iterating-dictionary |
C0201 |
Dashboard.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
129 |
4 |
refactor |
too-many-statements |
R0915 |
Dashboard.show |
Too many statements (135/50) |
226 |
34 |
convention |
invalid-name |
C0103 |
Dashboard.show.plot_one_mpc_variable._add_step_to_data |
Argument name "s" doesn't conform to snake_case naming style |
351 |
8 |
refactor |
inconsistent-return-statements |
R1710 |
Dashboard.show.plot_flexibility_kpi |
Either all return statements in a function should return an expression, or none of them should. |
460 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/100) |
501 |
8 |
refactor |
inconsistent-return-statements |
R1710 |
Dashboard.show.mark_characteristic_times_of_accepted_offers |
Either all return statements in a function should return an expression, or none of them should. |
524 |
8 |
refactor |
too-many-arguments |
R0913 |
Dashboard.show.create_plot |
Too many arguments (6/5) |
537 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
555 |
29 |
convention |
consider-iterating-dictionary |
C0201 |
Dashboard.show.create_plot |
Consider iterating the dictionary directly instead of calling .keys() |
573 |
16 |
convention |
invalid-name |
C0103 |
Dashboard.show.create_plot |
Variable name "ts" doesn't conform to snake_case naming style |
600 |
23 |
refactor |
use-dict-literal |
R1735 |
Dashboard.show.create_plot |
Consider using '{"t": 20, "b": 20}' instead of a call to 'dict'. |
690 |
41 |
warning |
f-string-without-interpolation |
W1309 |
Dashboard.show |
Using an f-string that does not have any interpolated variables |
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 'agentlib_mpc.data_structures.mpc_datamodels' |
35 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
52 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
52 |
84 |
warning |
redefined-builtin |
W0622 |
add_input |
Redefining built-in 'type' |
102 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
102 |
37 |
warning |
redefined-builtin |
W0622 |
add_output |
Redefining built-in 'type' |
156 |
4 |
convention |
invalid-name |
C0103 |
SetupSystemModifier.visit_Module |
Method name "visit_Module" doesn't conform to snake_case naming style |
179 |
4 |
convention |
invalid-name |
C0103 |
SetupSystemModifier.visit_ClassDef |
Method name "visit_ClassDef" doesn't conform to snake_case naming style |
229 |
8 |
refactor |
no-else-return |
R1705 |
SetupSystemModifier.get_leftmost_list |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
309 |
21 |
refactor |
consider-merging-isinstance |
R1701 |
SetupSystemModifier.modify_config_class_baseline |
Consider merging these isinstance calls to isinstance(body.value, (ast.BinOp, ast.Tuple)) |
341 |
21 |
refactor |
consider-merging-isinstance |
R1701 |
SetupSystemModifier.modify_config_class_baseline |
Consider merging these isinstance calls to isinstance(body.value, (ast.BinOp, ast.Tuple)) |
406 |
24 |
warning |
unused-variable |
W0612 |
SetupSystemModifier.modify_setup_system_shadow |
Unused variable 'ind' |
411 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
412 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
419 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
420 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
440 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
441 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
448 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
449 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
456 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
579 |
0 |
convention |
missing-function-docstring |
C0116 |
remove_all_imports_from_tree |
Missing function or method docstring |
Name |
Count |
import-error |
70 |
line-too-long |
123 |
trailing-whitespace |
17 |
missing-module-docstring |
16 |
too-many-instance-attributes |
4 |
unspecified-encoding |
8 |
invalid-name |
35 |
unnecessary-lambda |
2 |
unidiomatic-typecheck |
1 |
too-many-branches |
4 |
unnecessary-dunder-call |
1 |
too-many-locals |
1 |
logging-fstring-interpolation |
5 |
f-string-without-interpolation |
3 |
wrong-import-order |
20 |
anomalous-backslash-in-string |
1 |
raise-missing-from |
1 |
missing-class-docstring |
23 |
too-few-public-methods |
27 |
useless-parent-delegation |
1 |
missing-function-docstring |
23 |
consider-using-dict-items |
2 |
redefined-argument-from-local |
2 |
consider-iterating-dictionary |
4 |
unused-argument |
5 |
unnecessary-pass |
1 |
attribute-defined-outside-init |
3 |
no-self-argument |
1 |
broad-exception-raised |
1 |
too-many-arguments |
6 |
redefined-builtin |
2 |
no-else-return |
1 |
consider-merging-isinstance |
2 |
unused-variable |
1 |
inconsistent-return-statements |
3 |
useless-else-on-loop |
1 |
eval-used |
1 |
consider-using-from-import |
1 |
unnecessary-comprehension |
1 |
use-dict-literal |
1 |
too-many-statements |
1 |
unused-import |
1 |
consider-using-in |
1 |
trailing-newlines |
1 |
duplicate-code |
3 |
Name |
Count |
agentlib_flexquant |
2 |
agentlib_flexquant.generate_flex_agents |
81 |
agentlib_flexquant.optimization_backends.constrained_cia |
18 |
agentlib_flexquant.modules.baseline_mpc |
8 |
agentlib_flexquant.modules.shadow_mpc |
17 |
agentlib_flexquant.modules.flexibility_market |
32 |
agentlib_flexquant.modules.flexibility_indicator |
58 |
agentlib_flexquant.utils.parsing |
23 |
agentlib_flexquant.utils.config_management |
14 |
agentlib_flexquant.utils.data_handling |
13 |
agentlib_flexquant.utils.interactive |
30 |
agentlib_flexquant.data_structures.market |
15 |
agentlib_flexquant.data_structures.flex_kpis |
32 |
agentlib_flexquant.data_structures.mpcs |
13 |
agentlib_flexquant.data_structures.flex_offer |
15 |
agentlib_flexquant.data_structures.flex_results |
30 |
agentlib_flexquant.data_structures.flexquant |
23 |
agentlib_flexquant.data_structures.globals |
4 |
agentlib_flexquant.data_structures.__init__ |
4 |
Name |
Count |
agentlib_flexquant/__init__.py |
2 |
agentlib_flexquant/generate_flex_agents.py |
81 |
agentlib_flexquant/optimization_backends/constrained_cia.py |
18 |
agentlib_flexquant/modules/baseline_mpc.py |
8 |
agentlib_flexquant/modules/shadow_mpc.py |
17 |
agentlib_flexquant/modules/flexibility_market.py |
32 |
agentlib_flexquant/modules/flexibility_indicator.py |
58 |
agentlib_flexquant/utils/parsing.py |
23 |
agentlib_flexquant/utils/config_management.py |
14 |
agentlib_flexquant/utils/data_handling.py |
13 |
agentlib_flexquant/utils/interactive.py |
30 |
agentlib_flexquant/data_structures/market.py |
15 |
agentlib_flexquant/data_structures/flex_kpis.py |
32 |
agentlib_flexquant/data_structures/mpcs.py |
13 |
agentlib_flexquant/data_structures/flex_offer.py |
15 |
agentlib_flexquant/data_structures/flex_results.py |
30 |
agentlib_flexquant/data_structures/flexquant.py |
23 |
agentlib_flexquant/data_structures/globals.py |
4 |
agentlib_flexquant/data_structures/__init__.py |
4 |