Lots of red text when running `tox` on a fresh cookie.
@samcunliffe 已经在做这个了。
开始于 2025年7月15日。
评估
这个 Issue 还没有评估数据。
描述
Describe the Bug
During the workshop we ran tox on a demo package. There were a lot of errors possibly related to coverage?
To Reproduce
Cookiecut a fresh cookie.
uv venv
source .venv/bin/activate
uv pip install -e ".[dev,test]"
which tox
tox
Expected Behaviour
tox should run tests in all supported Python versions with nice comforting green text. And no red text.
Actual Behaviour
/Users/scnlf/projects/example-cookie/.tox/py311/lib/python3.11/site-packages/coverage/inorout.py:509: CoverageWarning: Module example-cookie was never imported. (module-not-imported)
self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
/Users/scnlf/projects/example-cookie/.tox/py311/lib/python3.11/site-packages/coverage/control.py:915: CoverageWarning: No data was collected. (no-data-collected)
self._warn("No data was collected.", slug="no-data-collected")
tests/test_dummy.py::test_stupid_example PASSED [100%]
WARNING: Failed to generate report: No data to report.
/Users/scnlf/projects/example-cookie/.tox/py311/lib/python3.11/site-packages/pytest_cov/plugin.py:358: CovReportWarning: Failed to generate report: No data to report.
warnings.warn(CovReportWarning(message), stacklevel=1)
========================================================= tests coverage =========================================================
_______________________________________ coverage: platform darwin, python 3.11.12-final-0 ________________________________________
======================================================= 1 passed in 0.02s ========================================================
py311: OK ✔ in 9.54 seconds
py312: install_package_deps> python -I -m pip install pytest pytest-cov
py312: install_package> python -I -m pip install --force-reinstall --no-deps /Users/scnlf/projects/example-cookie/.tox/.tmp/package/4/example-cookie-0.1.dev0.tar.gz
py312: commands[0]> pytest --cov --cov-report=xml
Version In Use
Current latest tag.
Additional Context
- Cookiecutter version:
- Operating system: macOS
- Python version: all!
- 主要语言
- Python
- 星标
- 62
- 派生
- 10
- 平均合并
- 14 天 16 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
UCL-ARC/python-tooling 的其他 Issue
-
task
难度 3/5 1-2 天 新手友好度 48/100
UCL-ARC/python-tooling#651 · 3 条评论 ·
-
Should we have an AI policy?可能已有人在做 @samcunliffe 于 23 天前认领。 未关闭question
UCL-ARC/python-tooling#649 · 3 条评论 · 已指派 1 人 ·
-
enhancement investigate
难度 3/5 1-2 天 新手友好度 48/100
UCL-ARC/python-tooling#623 · 1 个 reaction ·
-
enhancement question task
难度 3/5 1-2 天 新手友好度 38/100
UCL-ARC/python-tooling#620 · 4 条评论 ·
-
task
难度 4/5 3-5 天 新手友好度 25/100
UCL-ARC/python-tooling#619 ·
查看 UCL-ARC/python-tooling 的全部 Issue
相似的 Issue
-
getchaintips leaves out the active tip once a header is staged on it, where Core always lists it未关闭
难度 2/5 1-3 小时 新手友好度 88/100
btclib-org/btclib-node#2158 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
dbt-msft/dbt-sqlserver#897 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
Gathin23/cleanyourtv#2770 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
vllm-project/vllm#64845 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
dekobon/big-code-analysis#1729 ·
维护者通常 1 天内回复