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' |
3 |
0 |
warning |
unused-import |
W0611 |
|
Unused import numpy |
4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
5 |
0 |
warning |
reimported |
W0404 |
|
Reimport 'numpy' (imported line 3) |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
5 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package numpy are not grouped |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils' |
13 |
0 |
refactor |
too-few-public-methods |
R0903 |
KPI |
Too few public methods (1/2) |
33 |
4 |
convention |
missing-class-docstring |
C0115 |
KPI.Config |
Missing class docstring |
33 |
4 |
refactor |
too-few-public-methods |
R0903 |
KPI.Config |
Too few public methods (0/2) |
36 |
4 |
convention |
missing-function-docstring |
C0116 |
KPI.get_kpi_identifier |
Missing function or method docstring |
41 |
0 |
convention |
missing-class-docstring |
C0115 |
KPISeries |
Missing class docstring |
55 |
8 |
convention |
invalid-name |
C0103 |
KPISeries._get_dt |
Variable name "dt" doesn't conform to snake_case naming style |
56 |
8 |
convention |
invalid-name |
C0103 |
KPISeries._get_dt |
Attribute name "dt" doesn't conform to snake_case naming style |
59 |
4 |
convention |
missing-function-docstring |
C0116 |
KPISeries.min |
Missing function or method docstring |
62 |
4 |
convention |
missing-function-docstring |
C0116 |
KPISeries.max |
Missing function or method docstring |
77 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/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' |
208 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (159/100) |
219 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/100) |
230 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (144/100) |
251 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
286 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (117/100) |
288 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/100) |
322 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
344 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
FlexibilityData |
Too many instance attributes (10/7) |
403 |
4 |
convention |
missing-class-docstring |
C0115 |
FlexibilityData.Config |
Missing class docstring |
403 |
4 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityData.Config |
Too few public methods (0/2) |
406 |
4 |
refactor |
too-many-arguments |
R0913 |
FlexibilityData.__init__ |
Too many arguments (6/5) |
410 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
453 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (127/100) |
484 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityData.get_kpis |
Missing function or method docstring |
485 |
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 |
1 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
2 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
3 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from enum import Enum" should be placed before "import pydantic" |
4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
5 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Optional" should be placed before "import pydantic" |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.datamodels' |
8 |
0 |
convention |
missing-class-docstring |
C0115 |
OfferStatus |
Missing class docstring |
9 |
4 |
convention |
invalid-name |
C0103 |
OfferStatus |
Class constant name "not_accepted" doesn't conform to UPPER_CASE naming style |
10 |
4 |
convention |
invalid-name |
C0103 |
OfferStatus |
Class constant name "accepted_positive" doesn't conform to UPPER_CASE naming style |
11 |
4 |
convention |
invalid-name |
C0103 |
OfferStatus |
Class constant name "accepted_negative" doesn't conform to UPPER_CASE naming style |
14 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexOffer |
Too few public methods (1/2) |
54 |
4 |
convention |
missing-class-docstring |
C0115 |
FlexOffer.Config |
Missing class docstring |
54 |
4 |
refactor |
too-few-public-methods |
R0903 |
FlexOffer.Config |
Too few public methods (0/2) |
72 |
8 |
convention |
invalid-name |
C0103 |
FlexOffer.as_dataframe |
Variable name "df" doesn't conform to snake_case naming style |
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' |
4 |
0 |
warning |
unused-import |
W0611 |
|
Unused import agentlib |
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 agentlib" |
7 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import json" should be placed before "import agentlib" |
8 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import os" should be placed before "import agentlib" |
8 |
0 |
warning |
unused-import |
W0611 |
|
Unused import os |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.module' |
12 |
0 |
warning |
unused-import |
W0611 |
|
Unused BaseModuleConfig imported from agentlib.core.module |
13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.utils' |
14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.modules.mpc' |
15 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.modules.simulation.simulator' |
15 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package agentlib are not grouped |
16 |
0 |
warning |
unused-import |
W0611 |
|
Unused FlexibilityIndicatorConfig imported from agentlib_flexquant.data_structures.flexquant |
27 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils' |
27 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from agentlib_mpc.utils import TimeConversionTypes" should be placed before "from agentlib_flexquant.data_structures.flexquant import FlexQuantConfig, FlexibilityIndicatorConfig, FlexibilityMarketConfig" |
27 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package agentlib_mpc are not grouped |
28 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils.analysis' |
28 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from agentlib_mpc.utils.analysis import load_sim, load_mpc, load_mpc_stats" should be placed before "from agentlib_flexquant.data_structures.flexquant import FlexQuantConfig, FlexibilityIndicatorConfig, FlexibilityMarketConfig" |
30 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package agentlib_flexquant are not grouped |
43 |
4 |
convention |
invalid-name |
C0103 |
load_indicator |
Variable name "df" doesn't conform to snake_case naming style |
51 |
4 |
convention |
invalid-name |
C0103 |
load_market |
Variable name "df" doesn't conform to snake_case naming style |
55 |
0 |
convention |
missing-class-docstring |
C0115 |
Results |
Missing class docstring |
55 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
Results |
Too many instance attributes (24/7) |
90 |
4 |
refactor |
too-many-arguments |
R0913 |
Results.__init__ |
Too many arguments (6/5) |
90 |
4 |
refactor |
too-many-locals |
R0914 |
Results.__init__ |
Too many local variables (16/15) |
90 |
4 |
refactor |
too-many-branches |
R0912 |
Results.__init__ |
Too many branches (22/12) |
90 |
4 |
refactor |
too-many-statements |
R0915 |
Results.__init__ |
Too many statements (66/50) |
95 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
107 |
21 |
warning |
unspecified-encoding |
W1514 |
Results.__init__ |
Using open without explicitly specifying an encoding |
107 |
47 |
convention |
invalid-name |
C0103 |
Results.__init__ |
Variable name "f" doesn't conform to snake_case naming style |
141 |
21 |
warning |
unspecified-encoding |
W1514 |
Results.__init__ |
Using open without explicitly specifying an encoding |
141 |
58 |
convention |
invalid-name |
C0103 |
Results.__init__ |
Variable name "f" doesn't conform to snake_case naming style |
151 |
86 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
154 |
44 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
155 |
41 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
315 |
33 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
334 |
33 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
348 |
12 |
convention |
invalid-name |
C0103 |
Results.convert_timescale_of_dataframe_index |
Variable name "df" doesn't conform to snake_case naming style |
384 |
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. |
401 |
17 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
402 |
41 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
403 |
35 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
417 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
425 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
430 |
35 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
443 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
464 |
0 |
convention |
missing-final-newline |
C0304 |
|
Final newline missing |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
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' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
18 |
0 |
convention |
missing-class-docstring |
C0115 |
ForcedOffers |
Missing class docstring |
19 |
4 |
convention |
invalid-name |
C0103 |
ForcedOffers |
Class constant name "positive" doesn't conform to UPPER_CASE naming style |
20 |
4 |
convention |
invalid-name |
C0103 |
ForcedOffers |
Class constant name "negative" doesn't conform to UPPER_CASE naming style |
23 |
0 |
refactor |
too-few-public-methods |
R0903 |
ShadowMPCConfigGeneratorConfig |
Too few public methods (1/2) |
28 |
5 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
42 |
4 |
convention |
missing-function-docstring |
C0116 |
ShadowMPCConfigGeneratorConfig.assign_weights_to_flex |
Missing function or method docstring |
44 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
46 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
53 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityMarketConfig |
Too few public methods (0/2) |
65 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityIndicatorConfig |
Too few public methods (1/2) |
77 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorConfig.check_file_extension |
Missing function or method docstring |
78 |
37 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
82 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
165 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
189 |
0 |
convention |
missing-final-newline |
C0304 |
|
Final newline missing |
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 'pydantic' |
3 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Optional" should be placed before "import pydantic" |
3 |
0 |
warning |
unused-import |
W0611 |
|
Unused Optional imported from typing |
4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
9 |
0 |
refactor |
too-few-public-methods |
R0903 |
BaseMPCData |
Too few public methods (0/2) |
32 |
0 |
refactor |
too-few-public-methods |
R0903 |
BaselineMPCData |
Too few public methods (1/2) |
54 |
21 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
59 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
79 |
4 |
convention |
missing-function-docstring |
C0116 |
BaselineMPCData.update_config_parameters_appendix |
Missing function or method docstring |
98 |
0 |
refactor |
too-few-public-methods |
R0903 |
PFMPCData |
Too few public methods (0/2) |
131 |
0 |
refactor |
too-few-public-methods |
R0903 |
NFMPCData |
Too few public methods (0/2) |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'astor' |
11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'black' |
12 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import json" should be placed before "import astor" |
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' |
21 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
25 |
0 |
warning |
unused-import |
W0611 |
|
Unused add_import_to_tree imported from agentlib_flexquant.utils.parsing |
26 |
24 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
30 |
31 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
31 |
28 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
40 |
1 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
43 |
1 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
46 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexAgentGenerator |
Missing class docstring |
46 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
FlexAgentGenerator |
Too many instance attributes (17/7) |
163 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
175 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
181 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
196 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
201 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
201 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator.generate_flex_agents |
Using open without explicitly specifying an encoding |
201 |
107 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator.generate_flex_agents |
Variable name "f" doesn't conform to snake_case naming style |
207 |
28 |
warning |
unnecessary-lambda |
W0108 |
FlexAgentGenerator.generate_flex_agents.<lambda> |
Lambda may not be necessary |
242 |
17 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator.append_module_and_dump_agent |
Using open without explicitly specifying an encoding |
244 |
17 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator.append_module_and_dump_agent |
Variable name "f" doesn't conform to snake_case naming style |
297 |
4 |
refactor |
too-many-branches |
R0912 |
FlexAgentGenerator.adapt_mpc_module_config |
Too many branches (18/12) |
357 |
11 |
convention |
unidiomatic-typecheck |
C0123 |
FlexAgentGenerator.adapt_mpc_module_config |
Use isinstance() rather than type() for a typecheck. |
491 |
16 |
convention |
unnecessary-dunder-call |
C2801 |
FlexAgentGenerator.adapt_market_config |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
501 |
4 |
refactor |
too-many-locals |
R0914 |
FlexAgentGenerator._generate_flex_model_definition |
Too many local variables (17/15) |
525 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator._generate_flex_model_definition |
Using open without explicitly specifying an encoding |
525 |
47 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator._generate_flex_model_definition |
Variable name "f" doesn't conform to snake_case naming style |
533 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (149/100) |
538 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (149/100) |
543 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (149/100) |
569 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator._generate_flex_model_definition |
Using open without explicitly specifying an encoding |
569 |
39 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator._generate_flex_model_definition |
Variable name "f" doesn't conform to snake_case naming style |
600 |
4 |
refactor |
too-many-branches |
R0912 |
FlexAgentGenerator.run_config_validations |
Too many branches (17/12) |
607 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
608 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (117/100) |
609 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/100) |
612 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (122/100) |
621 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (153/100) |
623 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
626 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
627 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
634 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (160/100) |
636 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
643 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (157/100) |
644 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (123/100) |
646 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
648 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (126/100) |
649 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (175/100) |
649 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
FlexAgentGenerator.run_config_validations |
Use lazy % formatting in logging functions |
651 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
652 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
653 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
667 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (125/100) |
667 |
37 |
warning |
f-string-without-interpolation |
W1309 |
FlexAgentGenerator.run_config_validations |
Using an f-string that does not have any interpolated variables |
671 |
41 |
warning |
f-string-without-interpolation |
W1309 |
FlexAgentGenerator.run_config_validations |
Using an f-string that does not have any interpolated variables |
672 |
59 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
675 |
104 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
675 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
676 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/100) |
682 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (147/100) |
682 |
24 |
warning |
logging-fstring-interpolation |
W1203 |
FlexAgentGenerator.run_config_validations |
Use lazy % formatting in logging functions |
687 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (162/100) |
687 |
24 |
warning |
logging-fstring-interpolation |
W1203 |
FlexAgentGenerator.run_config_validations |
Use lazy % formatting in logging functions |
689 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
705 |
13 |
warning |
unspecified-encoding |
W1514 |
FlexAgentGenerator.adapt_sim_results_path |
Using open without explicitly specifying an encoding |
705 |
50 |
convention |
invalid-name |
C0103 |
FlexAgentGenerator.adapt_sim_results_path |
Variable name "f" doesn't conform to snake_case naming style |
714 |
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 |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.errors' |
9 |
0 |
warning |
unused-import |
W0611 |
|
Unused ConfigurationError imported from agentlib.core.errors |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
14 |
20 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
20 |
0 |
convention |
missing-class-docstring |
C0115 |
InputsForCorrectFlexCosts |
Missing class docstring |
20 |
0 |
refactor |
too-few-public-methods |
R0903 |
InputsForCorrectFlexCosts |
Too few public methods (0/2) |
24 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (152/100) |
37 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
40 |
0 |
convention |
missing-class-docstring |
C0115 |
InputsForCalculateFlexCosts |
Missing class docstring |
40 |
0 |
refactor |
too-few-public-methods |
R0903 |
InputsForCalculateFlexCosts |
Too few public methods (1/2) |
55 |
4 |
convention |
missing-function-docstring |
C0116 |
InputsForCalculateFlexCosts.validate_constant_price |
Missing function or method docstring |
55 |
4 |
error |
no-self-argument |
E0213 |
InputsForCalculateFlexCosts.validate_constant_price |
Method 'validate_constant_price' should have "self" as first argument |
57 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (128/100) |
57 |
12 |
warning |
broad-exception-raised |
W0719 |
InputsForCalculateFlexCosts.validate_constant_price |
Raising too general exception: Exception |
58 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (140/100) |
59 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
68 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityIndicatorModuleConfig |
Missing class docstring |
68 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityIndicatorModuleConfig |
Too few public methods (1/2) |
136 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
140 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
206 |
30 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
221 |
0 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
223 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModuleConfig.check_results_file_extension |
Missing function or method docstring |
231 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityIndicatorModule |
Missing class docstring |
253 |
8 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.__init__ |
Attribute name "df" doesn't conform to snake_case naming style |
255 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.register_callbacks |
Missing function or method docstring |
265 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.process |
Missing function or method docstring |
268 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.callback |
Missing function or method docstring |
268 |
4 |
refactor |
too-many-branches |
R0912 |
FlexibilityIndicatorModule.callback |
Too many branches (16/12) |
290 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
293 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (121/100) |
295 |
16 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.callback |
Variable name "n" doesn't conform to snake_case naming style |
296 |
16 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.callback |
Variable name "ts" doesn't conform to snake_case naming style |
299 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (133/100) |
300 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
320 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (116/100) |
341 |
28 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.write_results |
Argument name "df" doesn't conform to snake_case naming style |
341 |
32 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.write_results |
Argument name "ts" doesn't conform to snake_case naming style |
341 |
36 |
convention |
invalid-name |
C0103 |
FlexibilityIndicatorModule.write_results |
Argument name "n" doesn't conform to snake_case naming style |
341 |
4 |
refactor |
too-many-branches |
R0912 |
FlexibilityIndicatorModule.write_results |
Too many branches (13/12) |
347 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
399 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityIndicatorModule.cleanup_results |
Missing function or method docstring |
407 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (132/100) |
410 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (186/100) |
424 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (164/100) |
440 |
4 |
refactor |
too-many-arguments |
R0913 |
FlexibilityIndicatorModule.send_flex_offer |
Too many arguments (8/5) |
485 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (119/100) |
488 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
489 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
491 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (211/100) |
491 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
FlexibilityIndicatorModule.check_power_end_deviation |
Use lazy % formatting in logging functions |
496 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (211/100) |
496 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
FlexibilityIndicatorModule.check_power_end_deviation |
Use lazy % formatting in logging functions |
500 |
0 |
convention |
trailing-newlines |
C0305 |
|
Trailing newlines |
Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib' |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'numpy' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.errors' |
9 |
0 |
warning |
unused-import |
W0611 |
|
Unused ConfigurationError imported from agentlib.core.errors |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
18 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityMarketModuleConfig |
Missing class docstring |
18 |
0 |
refactor |
too-few-public-methods |
R0903 |
FlexibilityMarketModuleConfig |
Too few public methods (1/2) |
53 |
30 |
convention |
trailing-whitespace |
C0303 |
|
Trailing whitespace |
60 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModuleConfig.check_results_file_extension |
Missing function or method docstring |
81 |
8 |
warning |
attribute-defined-outside-init |
W0201 |
FlexibilityMarketModule.set_random_seed |
Attribute 'random_generator' defined outside __init__ |
96 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModule.register_callbacks |
Missing function or method docstring |
114 |
8 |
convention |
invalid-name |
C0103 |
FlexibilityMarketModule.register_callbacks |
Attribute name "df" doesn't conform to snake_case naming style |
115 |
8 |
warning |
attribute-defined-outside-init |
W0201 |
FlexibilityMarketModule.register_callbacks |
Attribute 'cooldown_ticker' defined outside __init__ |
117 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModule.write_results |
Missing function or method docstring |
120 |
8 |
convention |
invalid-name |
C0103 |
FlexibilityMarketModule.write_results |
Variable name "df" doesn't conform to snake_case naming style |
130 |
47 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.random_flexibility_callback |
Unused argument 'name' |
136 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (113/100) |
140 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (110/100) |
146 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
151 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
155 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
165 |
20 |
warning |
attribute-defined-outside-init |
W0201 |
FlexibilityMarketModule.random_flexibility_callback |
Attribute 'cooldown_ticker' defined outside __init__ |
172 |
47 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.single_flexibility_callback |
Unused argument 'name' |
180 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (111/100) |
181 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
183 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (102/100) |
202 |
8 |
warning |
unnecessary-pass |
W0107 |
FlexibilityMarketModule.custom_flexibility_callback |
Unnecessary pass statement |
204 |
29 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.dummy_callback |
Unused argument 'inp' |
204 |
34 |
warning |
unused-argument |
W0613 |
FlexibilityMarketModule.dummy_callback |
Unused argument 'name' |
208 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityMarketModule.cleanup_results |
Missing function or method docstring |
214 |
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 |
1 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.modules' |
2 |
0 |
warning |
unused-import |
W0611 |
|
Unused INTERPOLATE imported from agentlib_flexquant.utils.data_handling |
7 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Dict, Union" should be placed before "from agentlib_mpc.modules import mpc_full, minlp_mpc" |
8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.datamodels' |
8 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from agentlib.core.datamodels import AgentVariable" should be placed before "from agentlib_flexquant.utils.data_handling import strip_multi_index, fill_nans, MEAN, INTERPOLATE" |
11 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityShadowMPC |
Missing class docstring |
20 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMPC.register_callbacks |
Missing function or method docstring |
59 |
12 |
convention |
consider-using-dict-items |
C0206 |
FlexibilityShadowMPC.calc_flex_callback |
Consider iterating with .items() |
59 |
16 |
refactor |
redefined-argument-from-local |
R1704 |
FlexibilityShadowMPC.calc_flex_callback |
Redefining argument with the local name 'name' |
59 |
24 |
convention |
consider-iterating-dictionary |
C0201 |
FlexibilityShadowMPC.calc_flex_callback |
Consider iterating the dictionary directly instead of calling .keys() |
62 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMPC.process |
Missing function or method docstring |
67 |
0 |
convention |
missing-class-docstring |
C0115 |
FlexibilityShadowMINLPMPC |
Missing class docstring |
76 |
4 |
convention |
missing-function-docstring |
C0116 |
FlexibilityShadowMINLPMPC.register_callbacks |
Missing function or method docstring |
86 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
115 |
12 |
convention |
consider-using-dict-items |
C0206 |
FlexibilityShadowMINLPMPC.calc_flex_callback |
Consider iterating with .items() |
115 |
16 |
refactor |
redefined-argument-from-local |
R1704 |
FlexibilityShadowMINLPMPC.calc_flex_callback |
Redefining argument with the local name 'name' |
115 |
24 |
convention |
consider-iterating-dictionary |
C0201 |
FlexibilityShadowMINLPMPC.calc_flex_callback |
Consider iterating the dictionary directly instead of calling .keys() |
118 |
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 'agentlib_mpc.optimization_backends.casadi_.minlp_cia' |
2 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.optimization_backends.casadi_.core.casadi_backend' |
5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
5 |
0 |
warning |
unused-import |
W0611 |
|
Unused DiscretizationOptions imported from agentlib_mpc.data_structures.mpc_datamodels |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
7 |
0 |
warning |
unused-import |
W0611 |
|
Unused ConfigDict imported from pydantic |
8 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Optional" should be placed before "from agentlib_mpc.optimization_backends.casadi_.minlp_cia import CasADiCIABackend" |
8 |
0 |
warning |
unused-import |
W0611 |
|
Unused Optional imported from typing |
9 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from pathlib import Path" should be placed before "from agentlib_mpc.optimization_backends.casadi_.minlp_cia import CasADiCIABackend" |
9 |
0 |
warning |
unused-import |
W0611 |
|
Unused Path imported from pathlib |
10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.errors' |
11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
11 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package agentlib_mpc are not grouped |
20 |
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' |
22 |
29 |
warning |
anomalous-backslash-in-string |
W1401 |
|
Anomalous backslash in string: '\ '. String constant might be missing an r prefix. |
27 |
0 |
convention |
missing-class-docstring |
C0115 |
ConstrainedCIABackendConfig |
Missing class docstring |
27 |
0 |
refactor |
too-few-public-methods |
R0903 |
ConstrainedCIABackendConfig |
Too few public methods (0/2) |
35 |
4 |
convention |
missing-class-docstring |
C0115 |
ConstrainedCIABackendConfig.Config |
Missing class docstring |
35 |
4 |
refactor |
too-few-public-methods |
R0903 |
ConstrainedCIABackendConfig.Config |
Too few public methods (0/2) |
40 |
0 |
convention |
missing-class-docstring |
C0115 |
ConstrainedCasADiCIABackend |
Missing class docstring |
40 |
0 |
refactor |
too-few-public-methods |
R0903 |
ConstrainedCasADiCIABackend |
Too few public methods (1/2) |
44 |
4 |
warning |
useless-parent-delegation |
W0246 |
ConstrainedCasADiCIABackend.__init__ |
Useless parent or super() delegation in method '__init__' |
47 |
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 |
1 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==agentlib_flexquant.modules.flexibility_indicator:[332:352]
==agentlib_flexquant.modules.flexibility_market:[87:96]
results_file = self.config.results_file
try:
results = pd.read_csv(results_file, header=[0], index_col=[0, 1])
return results
except FileNotFoundError:
self.logger.error("Results file %s was not found.", results_file)
return None
def register_callbacks(self): |
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==agentlib_flexquant.modules.flexibility_indicator:[223:230]
==agentlib_flexquant.modules.flexibility_market:[60:68]
if self.results_file and self.results_file.suffix != ".csv":
raise ValueError(
f"Invalid file extension for 'results_file': '{self.results_file}'. "
f"Expected a '.csv' file."
)
return self
|
1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==agentlib_flexquant.data_structures.flexquant:[105:111]
==agentlib_flexquant.optimization_backends.constrained_cia:[27:34]
market_time: int = pydantic.Field(
default=900,
ge=0,
unit="s",
description="Time for market interaction",
)
|
2 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.module' |
3 |
0 |
warning |
unused-import |
W0611 |
|
Unused agentlib_flexquant.data_structures.globals imported as glbs |
4 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from copy import deepcopy" should be placed before "from agentlib.core.agent import AgentConfig" |
5 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import TypeVar" should be placed before "from agentlib.core.agent import AgentConfig" |
6 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import math" should be placed before "from agentlib.core.agent import AgentConfig" |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.modules' |
7 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from agentlib.modules import get_all_module_types" should be placed before "import agentlib_flexquant.data_structures.globals as glbs" |
7 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package agentlib are not grouped |
8 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import inspect" should be placed before "from agentlib.core.agent import AgentConfig" |
9 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import os" should be placed before "from agentlib.core.agent import AgentConfig" |
10 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import importlib.util" should be placed before "from agentlib.core.agent import AgentConfig" |
26 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (136/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. |
95 |
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 |
119 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (120/100) |
123 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (105/100) |
125 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (110/100) |
132 |
0 |
convention |
missing-function-docstring |
C0116 |
subtract_relative_path |
Missing function or method docstring |
154 |
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 'pydantic' |
3 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pandas' |
5 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import webbrowser" should be placed before "from pydantic import FilePath" |
6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'dash' |
7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'plotly' |
9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib.core.agent' |
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' |
13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.utils.plotting.interactive' |
16 |
0 |
refactor |
consider-using-from-import |
R0402 |
|
Use 'from agentlib_flexquant.data_structures import flex_results' instead |
22 |
0 |
refactor |
too-few-public-methods |
R0903 |
CustomBound |
Too few public methods (0/2) |
27 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
28 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
46 |
0 |
refactor |
too-many-instance-attributes |
R0902 |
Dashboard |
Too many instance attributes (8/7) |
66 |
4 |
refactor |
too-many-arguments |
R0913 |
Dashboard.__init__ |
Too many arguments (7/5) |
90 |
8 |
convention |
invalid-name |
C0103 |
Dashboard.__init__ |
Attribute name "LINE_PROPERTIES" doesn't conform to snake_case naming style |
127 |
12 |
refactor |
unnecessary-comprehension |
R1721 |
Dashboard.__init__ |
Unnecessary use of a comprehension, use list(self.intersection_mpcs_sim.keys()) instead. |
127 |
28 |
convention |
consider-iterating-dictionary |
C0201 |
Dashboard.__init__ |
Consider iterating the dictionary directly instead of calling .keys() |
136 |
4 |
refactor |
too-many-statements |
R0915 |
Dashboard.show |
Too many statements (135/50) |
145 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
216 |
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 |
338 |
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 |
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. |
485 |
8 |
refactor |
too-many-arguments |
R0913 |
Dashboard.show.create_plot |
Too many arguments (6/5) |
510 |
29 |
convention |
consider-iterating-dictionary |
C0201 |
Dashboard.show.create_plot |
Consider iterating the dictionary directly instead of calling .keys() |
528 |
16 |
convention |
invalid-name |
C0103 |
Dashboard.show.create_plot |
Variable name "ts" doesn't conform to snake_case naming style |
555 |
23 |
refactor |
use-dict-literal |
R1735 |
Dashboard.show.create_plot |
Consider using '{"t": 20, "b": 20}' instead of a call to 'dict'. |
645 |
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 |
9 |
0 |
warning |
unused-import |
W0611 |
|
Unused PROFILE_DEVIATION_WEIGHT imported from agentlib_flexquant.data_structures.globals |
19 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'agentlib_mpc.data_structures.mpc_datamodels' |
19 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from agentlib_mpc.data_structures.mpc_datamodels import MPCVariable" should be placed before "from agentlib_flexquant.data_structures.mpcs import BaseMPCData, PFMPCData, NFMPCData, BaselineMPCData" |
20 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from string import Template" should be placed before "from agentlib_mpc.data_structures.mpc_datamodels import MPCVariable" |
35 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
39 |
0 |
convention |
missing-function-docstring |
C0116 |
create_ast_element |
Missing function or method docstring |
43 |
0 |
convention |
missing-function-docstring |
C0116 |
add_input |
Missing function or method docstring |
43 |
46 |
warning |
redefined-builtin |
W0622 |
add_input |
Redefining built-in 'type' |
56 |
0 |
convention |
missing-function-docstring |
C0116 |
add_parameter |
Missing function or method docstring |
68 |
0 |
convention |
missing-function-docstring |
C0116 |
add_output |
Missing function or method docstring |
68 |
27 |
warning |
redefined-builtin |
W0622 |
add_output |
Redefining built-in 'type' |
112 |
4 |
convention |
invalid-name |
C0103 |
SetupSystemModifier.visit_Module |
Method name "visit_Module" doesn't conform to snake_case naming style |
135 |
4 |
convention |
invalid-name |
C0103 |
SetupSystemModifier.visit_ClassDef |
Method name "visit_ClassDef" doesn't conform to snake_case naming style |
185 |
8 |
refactor |
no-else-return |
R1705 |
SetupSystemModifier.get_leftmost_list |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
265 |
21 |
refactor |
consider-merging-isinstance |
R1701 |
SetupSystemModifier.modify_config_class_baseline |
Consider merging these isinstance calls to isinstance(body.value, (ast.BinOp, ast.Tuple)) |
297 |
21 |
refactor |
consider-merging-isinstance |
R1701 |
SetupSystemModifier.modify_config_class_baseline |
Consider merging these isinstance calls to isinstance(body.value, (ast.BinOp, ast.Tuple)) |
362 |
24 |
warning |
unused-variable |
W0612 |
SetupSystemModifier.modify_setup_system_shadow |
Unused variable 'ind' |
367 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
368 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
375 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
376 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
396 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
397 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
404 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
405 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (112/100) |
412 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (104/100) |
505 |
0 |
convention |
missing-function-docstring |
C0116 |
add_import_to_tree |
Missing function or method docstring |
522 |
0 |
convention |
missing-function-docstring |
C0116 |
remove_all_imports_from_tree |
Missing function or method docstring |
Name |
Count |
import-error |
76 |
trailing-whitespace |
31 |
line-too-long |
97 |
missing-module-docstring |
16 |
missing-class-docstring |
25 |
too-many-instance-attributes |
4 |
unspecified-encoding |
7 |
invalid-name |
36 |
unnecessary-lambda |
2 |
unidiomatic-typecheck |
1 |
too-many-branches |
5 |
unnecessary-dunder-call |
1 |
too-many-locals |
2 |
logging-fstring-interpolation |
5 |
f-string-without-interpolation |
3 |
wrong-import-order |
24 |
unused-import |
16 |
too-few-public-methods |
27 |
missing-function-docstring |
36 |
trailing-newlines |
2 |
reimported |
1 |
too-many-arguments |
6 |
unused-argument |
5 |
ungrouped-imports |
6 |
missing-final-newline |
2 |
too-many-statements |
2 |
consider-using-in |
1 |
anomalous-backslash-in-string |
1 |
raise-missing-from |
1 |
useless-parent-delegation |
1 |
no-self-argument |
1 |
broad-exception-raised |
1 |
unnecessary-pass |
1 |
attribute-defined-outside-init |
3 |
consider-using-dict-items |
2 |
redefined-argument-from-local |
2 |
consider-iterating-dictionary |
4 |
consider-using-from-import |
1 |
unnecessary-comprehension |
1 |
inconsistent-return-statements |
3 |
use-dict-literal |
1 |
redefined-builtin |
2 |
no-else-return |
1 |
consider-merging-isinstance |
2 |
unused-variable |
1 |
eval-used |
1 |
useless-else-on-loop |
1 |
duplicate-code |
3 |
Name |
Count |
agentlib_flexquant |
2 |
agentlib_flexquant.generate_flex_agents |
77 |
agentlib_flexquant.data_structures.market |
15 |
agentlib_flexquant.data_structures.__init__ |
1 |
agentlib_flexquant.data_structures.mpcs |
13 |
agentlib_flexquant.data_structures.flex_offer |
15 |
agentlib_flexquant.data_structures.flex_kpis |
37 |
agentlib_flexquant.data_structures.flex_results |
51 |
agentlib_flexquant.data_structures.flexquant |
21 |
agentlib_flexquant.data_structures.globals |
2 |
agentlib_flexquant.optimization_backends.constrained_cia |
25 |
agentlib_flexquant.modules.flexibility_indicator |
58 |
agentlib_flexquant.modules.flexibility_market |
34 |
agentlib_flexquant.modules.baseline_mpc |
8 |
agentlib_flexquant.modules.shadow_mpc |
19 |
agentlib_flexquant.utils.interactive |
29 |
agentlib_flexquant.utils.parsing |
29 |
agentlib_flexquant.utils.data_handling |
11 |
agentlib_flexquant.utils.config_management |
26 |
Name |
Count |
agentlib_flexquant/__init__.py |
2 |
agentlib_flexquant/generate_flex_agents.py |
77 |
agentlib_flexquant/data_structures/market.py |
15 |
agentlib_flexquant/data_structures/__init__.py |
1 |
agentlib_flexquant/data_structures/mpcs.py |
13 |
agentlib_flexquant/data_structures/flex_offer.py |
15 |
agentlib_flexquant/data_structures/flex_kpis.py |
37 |
agentlib_flexquant/data_structures/flex_results.py |
51 |
agentlib_flexquant/data_structures/flexquant.py |
21 |
agentlib_flexquant/data_structures/globals.py |
2 |
agentlib_flexquant/optimization_backends/constrained_cia.py |
25 |
agentlib_flexquant/modules/flexibility_indicator.py |
58 |
agentlib_flexquant/modules/flexibility_market.py |
34 |
agentlib_flexquant/modules/baseline_mpc.py |
8 |
agentlib_flexquant/modules/shadow_mpc.py |
19 |
agentlib_flexquant/utils/interactive.py |
29 |
agentlib_flexquant/utils/parsing.py |
29 |
agentlib_flexquant/utils/data_handling.py |
11 |
agentlib_flexquant/utils/config_management.py |
26 |