Skip to content

Commit 07529d7

Browse files
committed
Update paths
1 parent 21ba6ab commit 07529d7

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ exclude = [
8383
"*/migrations/*",
8484
"noxfile.py",
8585
"src/a2a/grpc/**",
86+
"tests/**",
8687
]
8788

8889
[lint.isort]

noxfile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
)

scripts/grpc_gen_post_processor.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from 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}')

0 commit comments

Comments
 (0)