File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
contract-tests/images/applications/gen_ai/crewai Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 2121
2222
2323class MockLLMHandler (BaseHTTPRequestHandler ):
24+ # pylint: disable=invalid-name
2425 def do_POST (self ):
25- global _llm_call_count
26+ global _llm_call_count # pylint: disable=global-statement
2627 _llm_call_count += 1
2728
2829 if _llm_call_count % 2 == 1 :
@@ -62,6 +63,7 @@ class RequestHandler(BaseHTTPRequestHandler):
6263 main_status : int = 200
6364
6465 @override
66+ # pylint: disable=invalid-name
6567 def do_GET (self ):
6668 if self .in_path ("crewai" ):
6769 self ._handle_crewai_request ()
@@ -78,8 +80,8 @@ def _handle_crewai_request(self) -> None:
7880 else :
7981 set_main_status (404 )
8082
81- def _run_single_agent (self ) -> None :
82- global _llm_call_count
83+ def _run_single_agent (self ) -> None : # pylint: disable=no-self-use
84+ global _llm_call_count # pylint: disable=global-statement
8385 _llm_call_count = 0
8486 set_main_status (200 )
8587
@@ -118,8 +120,8 @@ def get_greeting(name: str) -> str:
118120
119121 crew .kickoff ()
120122
121- def _run_multi_agent (self ) -> None :
122- global _llm_call_count
123+ def _run_multi_agent (self ) -> None : # pylint: disable=no-self-use
124+ global _llm_call_count # pylint: disable=global-statement
123125 _llm_call_count = 0
124126 set_main_status (200 )
125127
You can’t perform that action at this time.
0 commit comments