File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ exclude = [
8282 " venv" ,
8383 " */migrations/*" ,
8484 " noxfile.py" ,
85- " src/a2a/grpc/*. *" ,
85+ " src/a2a/grpc/**" ,
8686]
8787
8888[lint .isort ]
@@ -140,7 +140,10 @@ inline-quotes = "single"
140140"types.py" = [" D" , " E501" , " N815" ] # Ignore docstring and annotation issues in types.py
141141
142142[format ]
143- exclude = [" types.py" , " src/a2a/grpc/**" ]
143+ exclude = [
144+ " types.py" ,
145+ " src/a2a/grpc/**" ,
146+ ]
144147docstring-code-format = true
145148docstring-code-line-length = " dynamic" # Or set to 80
146149quote-style = " single"
Original file line number Diff line number Diff line change 6464 VALIDATE_GIT_COMMITLINT : false
6565 PYTHON_MYPY_CONFIG_FILE : .mypy.ini
6666 FILTER_REGEX_INCLUDE : " .*src/**/*"
67+ FILTER_REGEX_EXCLUDE : " .*src/a2a/grpc/**/*"
6768 PYTHON_RUFF_CONFIG_FILE : .ruff.toml
Original file line number Diff line number Diff line change @@ -103,14 +103,17 @@ def format(session) -> None:
103103 }
104104 )
105105
106- lint_paths_py = [f for f in changed_files if f .endswith ('.py' )]
106+ lint_paths_py = [
107+ f for f in changed_files if f .endswith ('.py' ) and 'grpc/' not in f
108+ ]
107109
108110 if not lint_paths_py :
109111 session .log ('No changed Python files to lint.' )
110112 return
111113
112114 session .install (
113115 'types-requests' ,
116+ 'types-protobuf' ,
114117 'pyupgrade' ,
115118 'autoflake' ,
116119 'ruff' ,
You can’t perform that action at this time.
0 commit comments