Lots of red text when running `tox` on a fresh cookie.
@samcunliffe đang làm issue này rồi.
Từ ngày 15/7/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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!
- Ngôn ngữ chính
- Python
- Star
- 62
- Fork
- 10
- Merge trung bình
- 7 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của UCL-ARC/python-tooling
-
enhancement investigate p3-medium
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
UCL-ARC/python-tooling#623 · 1 reaction ·
-
enhancement p3-medium question task
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
UCL-ARC/python-tooling#620 ·
-
Switch from MkDocs to Zensical Đang mởtask
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
UCL-ARC/python-tooling#619 ·
-
enhancement p4-low task
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
UCL-ARC/python-tooling#616 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
UCL-ARC/python-tooling#614 · 3 bình luận ·
Tất cả issue của UCL-ARC/python-tooling
Issue tương tự
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
bancolombia/sentinel#23 ·
-
test md Đang mởCI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100