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