-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpylint_report.txt
More file actions
188 lines (185 loc) · 31.5 KB
/
Copy pathpylint_report.txt
File metadata and controls
188 lines (185 loc) · 31.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
************* Module src.mcp_server
src\mcp_server.py:71:0: C0301: Line too long (117/100) (line-too-long)
src\mcp_server.py:82:0: C0301: Line too long (103/100) (line-too-long)
src\mcp_server.py:89:0: C0301: Line too long (170/100) (line-too-long)
src\mcp_server.py:100:0: C0301: Line too long (114/100) (line-too-long)
src\mcp_server.py:107:0: C0301: Line too long (123/100) (line-too-long)
src\mcp_server.py:116:0: C0301: Line too long (139/100) (line-too-long)
src\mcp_server.py:118:0: C0301: Line too long (107/100) (line-too-long)
src\mcp_server.py:119:0: C0301: Line too long (107/100) (line-too-long)
src\mcp_server.py:126:0: C0301: Line too long (117/100) (line-too-long)
src\mcp_server.py:137:0: C0301: Line too long (111/100) (line-too-long)
src\mcp_server.py:161:0: C0301: Line too long (129/100) (line-too-long)
src\mcp_server.py:174:0: C0301: Line too long (131/100) (line-too-long)
src\mcp_server.py:191:0: C0301: Line too long (110/100) (line-too-long)
src\mcp_server.py:198:0: C0301: Line too long (129/100) (line-too-long)
src\mcp_server.py:217:0: C0301: Line too long (119/100) (line-too-long)
src\mcp_server.py:220:0: C0301: Line too long (125/100) (line-too-long)
src\mcp_server.py:267:0: C0301: Line too long (110/100) (line-too-long)
src\mcp_server.py:286:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:312:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:314:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:331:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:334:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:375:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:379:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:386:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:395:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:401:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:410:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:421:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:427:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:431:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:434:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:445:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:449:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:451:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:454:81: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:458:55: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:466:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:474:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:476:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:492:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:496:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:499:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:507:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:513:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:521:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:532:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:536:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:546:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:553:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:556:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:560:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:563:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:570:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:576:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:578:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:581:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:591:0: C0303: Trailing whitespace (trailing-whitespace)
src\mcp_server.py:35:0: C0413: Import "from dotenv import load_dotenv" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:39:0: C0413: Import "from mcp.server import Server" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:40:0: C0413: Import "from mcp.server.stdio import stdio_server" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:41:0: C0413: Import "from mcp.types import Tool, TextContent" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:44:0: C0413: Import "from src.engine.calculator.main import ChartCalculator, get_coordinates" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:45:0: C0413: Import "from src.engine.forensic_engine import Auditor" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:46:0: C0413: Import "from src.engine.electional import ElectionalEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:47:0: C0413: Import "from src.engine.decennials import DecennialEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:48:0: C0413: Import "from src.engine.phasis import PhasisEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:49:0: C0413: Import "from src.engine.mundane import MundaneEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:50:0: C0413: Import "from src.engine.medical import MedicalEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:50:0: E0611: No name 'MedicalEngine' in module 'src.engine.medical' (no-name-in-module)
src\mcp_server.py:51:0: C0413: Import "from src.engine.horary import HoraryEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:51:0: E0611: No name 'HoraryEngine' in module 'src.engine.horary' (no-name-in-module)
src\mcp_server.py:52:0: C0413: Import "from src.engine.solar_return import SolarReturnEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:53:0: C0413: Import "from src.engine.synastry import SynastryEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:54:0: C0413: Import "from src.engine.planetary_hours import PlanetaryHourEngine" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:55:0: C0413: Import "from src.engine.models import PlanetName" should be placed at the top of the module (wrong-import-position)
src\mcp_server.py:315:11: W0718: Catching too general exception Exception (broad-exception-caught)
src\mcp_server.py:316:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
src\mcp_server.py:284:0: R0912: Too many branches (13/12) (too-many-branches)
src\mcp_server.py:361:4: C0415: Import outside toplevel (src.engine.models.Sign) (import-outside-toplevel)
src\mcp_server.py:369:4: W0612: Unused variable 'dt' (unused-variable)
src\mcp_server.py:424:8: W0612: Unused variable 'target_dt' (unused-variable)
src\mcp_server.py:450:4: W0612: Unused variable 'engine' (unused-variable)
src\mcp_server.py:472:4: C0415: Import outside toplevel (swisseph) (import-outside-toplevel)
src\mcp_server.py:580:13: E1101: Instance of 'PlanetaryHourEngine' has no 'get_planetary_hour' member (no-member)
src\mcp_server.py:29:0: W0611: Unused Any imported from typing (unused-import)
src\mcp_server.py:29:0: W0611: Unused Optional imported from typing (unused-import)
************* Module src.astrology_tools
src\astrology_tools.py:41:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:44:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:58:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:71:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:88:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:104:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:120:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:123:44: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:124:51: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:129:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:136:0: C0301: Line too long (104/100) (line-too-long)
src\astrology_tools.py:144:0: C0301: Line too long (105/100) (line-too-long)
src\astrology_tools.py:145:0: C0301: Line too long (102/100) (line-too-long)
src\astrology_tools.py:151:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:159:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:170:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:172:0: C0301: Line too long (136/100) (line-too-long)
src\astrology_tools.py:173:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:184:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:191:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:194:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:211:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:216:0: C0301: Line too long (106/100) (line-too-long)
src\astrology_tools.py:228:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:237:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:241:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:246:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:252:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:265:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:270:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:275:0: C0303: Trailing whitespace (trailing-whitespace)
src\astrology_tools.py:23:0: C0413: Import "from dotenv import load_dotenv" should be placed at the top of the module (wrong-import-position)
src\astrology_tools.py:26:0: C0413: Import "from src.engine.calculator.main import calculate_chart_data, get_coordinates" should be placed at the top of the module (wrong-import-position)
src\astrology_tools.py:27:0: C0413: Import "from src.engine.forensic_engine import Auditor" should be placed at the top of the module (wrong-import-position)
src\astrology_tools.py:28:0: C0413: Import "from src.engine.electional import ElectionalEngine" should be placed at the top of the module (wrong-import-position)
src\astrology_tools.py:29:0: C0413: Import "from src.engine.mundane import MundaneEngine" should be placed at the top of the module (wrong-import-position)
src\astrology_tools.py:30:0: C0413: Import "from src.engine.horary import build_horary_oracle" should be placed at the top of the module (wrong-import-position)
src\astrology_tools.py:35:4: W0404: Reimport 'Auditor' (imported line 27) (reimported)
src\astrology_tools.py:36:22: W0212: Access to a protected member _rebuild_chart_model of a client class (protected-access)
src\astrology_tools.py:48:4: R0913: Too many arguments (8/5) (too-many-arguments)
src\astrology_tools.py:48:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
src\astrology_tools.py:62:4: R0913: Too many arguments (8/5) (too-many-arguments)
src\astrology_tools.py:62:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
src\astrology_tools.py:70:15: E1123: Unexpected keyword argument 'birth_dt' in staticmethod call (unexpected-keyword-arg)
src\astrology_tools.py:70:15: E1120: No value for argument 'date_str' in staticmethod call (no-value-for-parameter)
src\astrology_tools.py:70:15: E1120: No value for argument 'time_str' in staticmethod call (no-value-for-parameter)
src\astrology_tools.py:75:4: R0913: Too many arguments (6/5) (too-many-arguments)
src\astrology_tools.py:75:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
src\astrology_tools.py:94:8: C0415: Import outside toplevel (swisseph) (import-outside-toplevel)
src\astrology_tools.py:95:8: W0612: Unused variable 'dt' (unused-variable)
src\astrology_tools.py:108:4: R0913: Too many arguments (11/5) (too-many-arguments)
src\astrology_tools.py:108:4: R0917: Too many positional arguments (11/5) (too-many-positional-arguments)
src\astrology_tools.py:136:4: R0914: Too many local variables (22/15) (too-many-locals)
src\astrology_tools.py:168:19: W0718: Catching too general exception Exception (broad-exception-caught)
src\astrology_tools.py:176:25: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
src\astrology_tools.py:177:25: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
src\astrology_tools.py:136:4: R0915: Too many statements (74/50) (too-many-statements)
src\astrology_tools.py:254:8: C0103: Constant name "report" doesn't conform to UPPER_CASE naming style (invalid-name)
src\astrology_tools.py:17:0: W0611: Unused List imported from typing (unused-import)
src\astrology_tools.py:26:0: W0611: Unused get_coordinates imported from src.engine.calculator.main (unused-import)
************* Module generate_horary_report
src\scripts\generate_horary_report.py:20:0: C0303: Trailing whitespace (trailing-whitespace)
src\scripts\generate_horary_report.py:22:0: C0303: Trailing whitespace (trailing-whitespace)
src\scripts\generate_horary_report.py:28:0: C0303: Trailing whitespace (trailing-whitespace)
src\scripts\generate_horary_report.py:40:0: C0303: Trailing whitespace (trailing-whitespace)
src\scripts\generate_horary_report.py:44:0: C0303: Trailing whitespace (trailing-whitespace)
src\scripts\generate_horary_report.py:46:0: C0301: Line too long (176/100) (line-too-long)
src\scripts\generate_horary_report.py:47:0: C0303: Trailing whitespace (trailing-whitespace)
src\scripts\generate_horary_report.py:1:0: C0114: Missing module docstring (missing-module-docstring)
src\scripts\generate_horary_report.py:11:0: C0413: Import "from src.astrology_tools import AstrologyTools" should be placed at the top of the module (wrong-import-position)
src\scripts\generate_horary_report.py:13:0: C0116: Missing function or method docstring (missing-function-docstring)
src\scripts\generate_horary_report.py:1:0: R0801: Similar lines in 2 files
==src.astrology_tools:[96:117]
==src.mcp_server:[474:485]
engine = MundaneEngine(jd)
return {
"eclipses": engine.get_recent_eclipses(),
"great_conjunction": engine.get_latest_great_conjunction(),
"world_firdaria": engine.get_world_firdaria(),
"mighty_firdaria": engine.get_mighty_firdaria()
}
# =========================================================================
# TOOL 5: HORARY ORACLE
# =========================================================================
def horary_judgment(
self,
question: str,
year: int, month: int, day: int,
hour: int, minute: int,
city: str, state: str = "",
latitude: Optional[float] = None,
longitude: Optional[float] = None
) -> Dict:
"""Consult the Horary Oracle for a specific question.""" (duplicate-code)
------------------------------------------------------------------
Your code has been rated at 4.96/10 (previous run: 4.96/10, +0.00)