File tree Expand file tree Collapse file tree 5 files changed +23
-66
lines changed Expand file tree Collapse file tree 5 files changed +23
-66
lines changed Original file line number Diff line number Diff line change 59
59
with :
60
60
python-version : ' 3.10'
61
61
62
- - name : Install Poetry
63
- uses : snok/install-poetry@v1
64
-
65
62
- name : Install dependencies
66
63
run : |
67
64
mkdir -p $HOME/.ssh
@@ -77,16 +74,14 @@ jobs:
77
74
78
75
go run mage.go deps
79
76
80
- poetry install --no-interaction
81
-
82
77
- name : Clean generated code
83
78
run : go run mage.go clean
84
79
85
80
- name : Setup Buf Registry
86
81
run : echo -e "machine buf.build\npassword ${ASERTO_BUF_TOKEN}" >> ~/.netrc
87
82
88
83
- name : Generate
89
- run : poetry run go run mage.go generate
84
+ run : go run mage.go generate
90
85
91
86
- name : Commit changes
92
87
if : github.event_name == 'workflow_dispatch'
@@ -161,7 +156,6 @@ jobs:
161
156
- name : Install Poetry
162
157
uses : snok/install-poetry@v1
163
158
164
-
165
159
- name : Build and push the python package
166
160
run : go run mage.go release
167
161
Original file line number Diff line number Diff line change 6
6
out : ./src
7
7
- plugin : buf.build/protocolbuffers/python
8
8
out : ./src
9
- - name : " mypy "
9
+ - plugin : buf.build/protocolbuffers/pyi
10
10
out : " ./src"
11
- - name : " mypy_grpc "
11
+ - plugin : " buf.build/community/nipunn1313-mypy-grpc "
12
12
out : " ./src"
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def __init__(self):
90
90
self ._in_const : bool = False
91
91
92
92
def visit_ClassDef (self , node : ast .ClassDef ):
93
- if self .is_public (node .name ):
93
+ if self .is_public (node .name ) and not node . name . endswith ( "AsyncStub" ) :
94
94
self .symbols .append (node .name )
95
95
96
96
def is_public (self , name : str ) -> bool :
Original file line number Diff line number Diff line change @@ -30,14 +30,15 @@ packages = [
30
30
31
31
[tool .poetry .dependencies ]
32
32
python = " >=3.8"
33
+ grpcio = " >=1.58.0"
34
+ typing-extensions = " >=3.10.0"
33
35
34
36
[tool .poetry .dev-dependencies ]
35
- mypy = " ^1.6.1"
36
- mypy-protobuf = " ^3.5.0"
37
37
black = " ^23.10.1"
38
38
isort = " ^5.10.1"
39
39
40
40
[tool .mypy ]
41
+ explicit_package_bases = true
41
42
show_error_codes = true
42
43
check_untyped_defs = false
43
44
disallow_any_decorated = false
You can’t perform that action at this time.
0 commit comments