add pytest

This commit is contained in:
yanyongyu
2021-12-10 17:01:56 +08:00
parent a0d13822c0
commit 5aedc52537
5 changed files with 224 additions and 4 deletions

View File

@ -39,6 +39,7 @@ aiohttp = { version = "^3.7.4", extras = ["speedups"], optional = true }
sphinx = "^4.1.1"
isort = "^5.10.1"
black = "^21.11b1"
pytest-cov = "^3.0.0"
sphinx-markdown-builder = { git = "https://github.com/nonebot/sphinx-markdown-builder.git" }
[tool.poetry.extras]
@ -51,6 +52,9 @@ all = ["quart", "aiohttp"]
# url = "https://mirrors.aliyun.com/pypi/simple/"
# default = true
[tool.pytest.ini_options]
addopts = "--cov=nonebot --cov-report=term-missing"
[tool.black]
line-length = 88
target-version = ["py37", "py38", "py39", "py310"]