File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ exclude = [
8383 " */migrations/*" ,
8484 " noxfile.py" ,
8585 " src/a2a/grpc/**" ,
86+ " tests/**" ,
8687]
8788
8889[lint .isort ]
Original file line number Diff line number Diff line change @@ -144,14 +144,10 @@ def format(session) -> None:
144144 'ruff' ,
145145 'check' ,
146146 '--fix-only' ,
147- '--config' ,
148- '.ruff.toml' ,
149147 * lint_paths_py ,
150148 )
151149 session .run (
152150 'ruff' ,
153151 'format' ,
154- '--config' ,
155- '.ruff.toml' ,
156152 * lint_paths_py ,
157153 )
Original file line number Diff line number Diff line change 1111from pathlib import Path
1212
1313
14- def process_generated_code (src_folder : str = 'src/a2a/grpc' ):
14+ def process_generated_code (src_folder : str = 'src/a2a/grpc' ) -> None :
1515 """Post processor for the generated code."""
1616 dir_path = Path (src_folder )
1717 print (dir_path )
@@ -40,12 +40,12 @@ def process_generated_code(src_folder: str = 'src/a2a/grpc'):
4040 flags = re .MULTILINE ,
4141 )
4242
43- if fixed_src_content != src_content :
44- with file .open ('w' , encoding = 'utf-8' ) as f :
45- f .write (fixed_src_content )
46- print ('Imports fixed' )
47- else :
48- print ('No changes needed' )
43+ if fixed_src_content != src_content :
44+ with file .open ('w' , encoding = 'utf-8' ) as f :
45+ f .write (fixed_src_content )
46+ print ('Imports fixed' )
47+ else :
48+ print ('No changes needed' )
4949
5050 except Exception as e :
5151 print (f'Error processing file { file } : { e } ' )
You can’t perform that action at this time.
0 commit comments