1# Setup settings for GRPC Python 2 3[coverage:run] 4plugins = Cython.Coverage 5 6[build] 7build_base=pyb 8 9[build_ext] 10inplace=1 11 12[build_package_protos] 13exclude=.*protoc_plugin/protoc_plugin_test\.proto$ 14 15[metadata] 16license_files = LICENSE 17 18# NOTE(lidiz) Adding examples one by one due to pytype aggressive errer: 19# ninja: error: build.ninja:178: multiple rules generate helloworld_pb2.pyi [-w dupbuild=err] 20# TODO(xuanwn): include all files in src/python/grpcio/grpc 21[pytype] 22inputs = 23 src/python/grpcio/grpc/experimental 24 src/python/grpcio/grpc 25 src/python/grpcio_tests/tests_aio 26 src/python/grpcio_observability/grpc_observability 27 examples/python/auth 28 examples/python/helloworld 29exclude = 30 **/*_pb2.py 31 src/python/grpcio/grpc/framework 32 src/python/grpcio/grpc/aio 33 src/python/grpcio/grpc/beta 34 src/python/grpcio/grpc/__init__.py 35 src/python/grpcio/grpc/_simple_stubs.py 36 37# NOTE(lidiz) 38# import-error: C extension triggers import-error. 39# module-attr: pytype cannot understand the namespace packages by Google. 40# attribute-error: Data classes in grpc module doesn't specify attributes. 41disable = "import-error,module-attr,attribute-error" 42