pytest-monkeytype:从您的pytest测试中生成Monkeytype注释。
项目描述
pytest-monkeytype
MonkeyType作为一个pytest插件。
pip install pytest-monkeytype
# Generate annotations by running your pytest tests as usual:
py.test --monkeytype-output=./monkeytype.sqlite3
# Get a listing of modules annotated by monkeytype
monkeytype list-modules
# Generate a stub file for those annotations using monkeytype:
monkeytype stub some.module
# Apply these annotations directly
monkeytype apply some.module
此项目受到pytest-annotate的启发