代码拉取完成,页面将自动刷新
[tox]
envlist =
lint
py36
py37
py38
py39
pypy3
minversion = 3.14.2
requires =
virtualenv >= 20.4.5
pip >= 21.1.1
[testenv]
passenv =
LC_ALL
LANG
HOME
commands =
pip install -e .
pytest --cov=cookiecutter --cov-report=term --cov-fail-under=100 --cov-branch {posargs:tests}
cov-report: coverage html
cov-report: coverage xml
deps = -rtest_requirements.txt
skip_install = true
[testenv:lint]
commands =
python -m pre_commit run {posargs:--all}
deps = pre-commit>=1.20.0
usedevelop = false
[testenv:docs]
commands =
pip install -e .
pip install -r test_requirements.txt
pip install -r docs/requirements.txt
make docs
whitelist_externals = make
[testenv:safety]
commands =
safety check --full-report
deps =
safety
[testenv:packaging]
description =
Build package, verify metadata, install package and assert behavior when ansible is missing.
deps =
build
twine
skip_install = true
commands =
{envpython} -c 'import os.path, shutil, sys; \
dist_dir = os.path.join("{toxinidir}", "dist"); \
os.path.isdir(dist_dir) or sys.exit(0); \
print("Removing \{!s\} contents...".format(dist_dir), file=sys.stderr); \
shutil.rmtree(dist_dir)'
# build using moder python build (PEP-517)
{envpython} -m build \
--sdist \
--wheel \
--outdir {toxinidir}/dist/ \
{toxinidir}
# Validate metadata using twine
twine check {toxinidir}/dist/*
# Install the wheel
sh -c "python3 -m pip install {toxinidir}/dist/*.whl"
whitelist_externals = sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。