数据目录连接器的通用测试资源
google-datacatalog-connectors-commons-test的Python项目详细描述
谷歌数据目录连接器通用测试
数据目录连接器的通用测试资源
免责声明:这不是官方支持的谷歌产品。
目录
1。可安装文件生成过程
1.1条。获取代码
git clone https://github.com/GoogleCloudPlatform/datacatalog-connectors
cd google-datacatalog-connectors-commons-test
1.2条。虚拟环境
使用virtualenv是可选的,但强烈建议使用。在
1.2.1。安装Python3.6
1.2.2。创建并激活virtualenv
^{pr2}$2。开发者环境
2.1条。安装并运行YAPF formatter
pip install --upgrade yapf # Auto update files yapf --in-place --recursive src tests # Show diff yapf --diff --recursive src tests # Set up pre-commit hook# From the root of your git project. curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/master/plugins/pre-commit.sh chmod a+x pre-commit.sh mv pre-commit.sh .git/hooks/pre-commit
2.2条。安装并运行Flake8 linter
pip install --upgrade flake8 flake8 src tests
2.3条。以可编辑模式(即setuptools“开发模式”)安装软件包
pip install --editable .
2.4条。运行单元测试
python setup.py test
- 项目
标签: