coverage 7.17.0__tar.gz → 7.17.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/codeql-analysis.yml +3 -3
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/coverage.yml +5 -2
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/kit.yml +2 -2
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/publish.yml +2 -2
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/quality.yml +4 -4
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/testsuite.yml +2 -2
- {coverage-7.17.0 → coverage-7.17.1}/.pre-commit-config.yaml +1 -1
- {coverage-7.17.0 → coverage-7.17.1}/CHANGES.rst +40 -0
- {coverage-7.17.0 → coverage-7.17.1}/Makefile +2 -2
- {coverage-7.17.0/coverage.egg-info → coverage-7.17.1}/PKG-INFO +7 -7
- {coverage-7.17.0 → coverage-7.17.1}/ci/trigger_action.py +7 -1
- {coverage-7.17.0 → coverage-7.17.1}/coverage/cmdline.py +2 -7
- {coverage-7.17.0 → coverage-7.17.1}/coverage/data.py +2 -2
- {coverage-7.17.0 → coverage-7.17.1}/coverage/files.py +1 -1
- {coverage-7.17.0 → coverage-7.17.1}/coverage/html.py +12 -10
- {coverage-7.17.0 → coverage-7.17.1}/coverage/inorout.py +3 -1
- {coverage-7.17.0 → coverage-7.17.1}/coverage/results.py +31 -3
- {coverage-7.17.0 → coverage-7.17.1}/coverage/sqldata.py +21 -5
- {coverage-7.17.0 → coverage-7.17.1}/coverage/sqlitedb.py +58 -6
- {coverage-7.17.0 → coverage-7.17.1}/coverage/sysmon.py +21 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/templite.py +1 -1
- {coverage-7.17.0 → coverage-7.17.1}/coverage/version.py +1 -1
- {coverage-7.17.0 → coverage-7.17.1/coverage.egg-info}/PKG-INFO +7 -7
- {coverage-7.17.0 → coverage-7.17.1}/doc/conf.py +3 -3
- {coverage-7.17.0 → coverage-7.17.1}/doc/config.rst +7 -4
- {coverage-7.17.0 → coverage-7.17.1}/doc/requirements.txt +177 -158
- {coverage-7.17.0 → coverage-7.17.1}/howto.txt +1 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/parser.py +1 -1
- {coverage-7.17.0 → coverage-7.17.1}/requirements/dev.txt +215 -213
- {coverage-7.17.0 → coverage-7.17.1}/requirements/js.txt +14 -10
- {coverage-7.17.0 → coverage-7.17.1}/requirements/kit.txt +24 -24
- {coverage-7.17.0 → coverage-7.17.1}/requirements/light-threads.txt +54 -45
- {coverage-7.17.0 → coverage-7.17.1}/requirements/mypy.txt +206 -204
- coverage-7.17.1/requirements/pip.txt +36 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/pytest.txt +134 -136
- coverage-7.17.1/requirements/tox.txt +74 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_api.py +10 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_arcs.py +50 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_cmdline.py +22 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_concurrency.py +1 -1
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_data.py +124 -5
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_debug.py +2 -2
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_html.py +54 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_results.py +43 -2
- {coverage-7.17.0 → coverage-7.17.1}/tox.ini +2 -1
- coverage-7.17.0/requirements/pip.txt +0 -36
- coverage-7.17.0/requirements/tox.txt +0 -74
- {coverage-7.17.0 → coverage-7.17.1}/.editorconfig +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.git-blame-ignore-revs +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/CODE_OF_CONDUCT.md +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/FUNDING.yml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/ISSUE_TEMPLATE/support.md +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/SECURITY.md +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/dependabot.yml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/dependency-review.yml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/workflows/python-nightly.yml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.github/zizmor.yml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.gitignore +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.ignore +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/.readthedocs.yaml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/CITATION.cff +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/CONTRIBUTORS.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/LICENSE.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/MANIFEST.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/NOTICE.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/README.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/__main__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/a1_coverage.pth +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/ci/README.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/ci/comment_on_fixes.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/ci/session.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/ci/update_rtfd.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/__main__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/annotate.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/bytecode.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/collector.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/config.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/context.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/control.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/core.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/datastack.c +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/datastack.h +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/filedisp.c +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/filedisp.h +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/module.c +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/stats.h +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/tracer.c +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/tracer.h +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/ctracer/util.h +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/debug.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/disposition.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/env.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/exceptions.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/execfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/coverage_html.js +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/favicon_32.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/keybd_closed.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/pyfile.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/style.css +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/htmlfiles/style.scss +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/jsonreport.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/lcovreport.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/misc.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/multiproc.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/numbits.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/parser.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/patch.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/phystokens.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/plugin.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/plugin_support.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/pth_file.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/py.typed +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/python.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/pytracer.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/regions.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/report.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/report_core.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/tomlconfig.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/tracer.pyi +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/types.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage/xmlreport.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage.egg-info/SOURCES.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage.egg-info/dependency_links.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage.egg-info/entry_points.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage.egg-info/not-zip-safe +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage.egg-info/requires.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/coverage.egg-info/top_level.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/_static/coverage.css +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/api.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/api_coverage.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/api_coveragedata.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/api_exceptions.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/api_module.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/api_plugin.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/branch.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/changes.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/cog_helpers.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_annotate.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_combine.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_debug.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_erase.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_html.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_json.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_lcov.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_report.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_reporting.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_run.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/cmd_xml.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/commands/index.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/contexts.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/contributing.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/dbschema.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/dict.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/excluding.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/faq.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/howitworks.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/index.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/install.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White_small.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/media/sleepy-snake-600.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/media/sleepy-snake-circle-150.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/messages.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/migrating.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/other.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/plugins.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/python-coverage.1.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/requirements.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/sleepy.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/source.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/subprocess.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/trouble.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/doc/whatsnew5x.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/igor.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/README.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/branches.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/compare_times.sh +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/coverage-04.dtd +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/extract_code.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/goals.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/hack_pyc.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/notes/arcs-to-branches.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/notes/bug1303.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/notes/pypy-738-decorated-functions.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/parse_all.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/pick.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/platform_info.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/run_sysmon.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/run_trace.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/select_contexts.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/show_platform.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/show_pyc.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/treetopy.sh +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/warn_executed.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/lab/warn_executed.toml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/metacov.ini +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/pyproject.toml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/dev.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/js.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/kit.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/light-threads.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/mypy.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/pins.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/pip.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/pytest.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/requirements/tox.in +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/setup.cfg +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/setup.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/conftest.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/coveragetest.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/covmodzip1.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/README.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/anno_dir/multi.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/anno_dir/z_80084bf2fba02475___init__.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/anno_dir/z_80084bf2fba02475_a.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/anno_dir/z_b039179a8a4ce2c2___init__.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/anno_dir/z_b039179a8a4ce2c2_b.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/encodings/utf8.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/mae/mae.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/multi/a/__init__.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/multi/a/a.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/multi/b/__init__.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/multi/b/b.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/multi/multi.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/annotate/white/white.py,cover +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/Makefile +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/a/a_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/a/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/a/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/a/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/b_branch/b_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/b_branch/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/b_branch/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/b_branch/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/bom/bom_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/bom/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/bom/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/bom/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/contexts/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/contexts/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/contexts/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/contexts/two_tests_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/isolatin1/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/isolatin1/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/isolatin1/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/isolatin1/isolatin1_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/multiline/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/multiline/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/multiline/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/multiline/multiline_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/m1_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/m2_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/m3_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_1/main_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_2/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_2/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_2/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_2/m2_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_2/m3_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_2/main_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_3/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_3/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_3/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_3/m3_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_3/main_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_4/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_4/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_4/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_4/m1_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_4/m3_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_4/main_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_5/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_5/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_5/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_5/m1_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/omit_5/main_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/other/blah_blah_other_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/other/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/other/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/other/here_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/other/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/partial/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/partial/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/partial/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/partial/partial_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/styled/a_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/styled/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/styled/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/styled/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/styled/myextra.css +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/styled/style.css +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/support/coverage_html_cb_dd2e7eb5.js +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/support/favicon_32_cb_c827f16f.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/support/keybd_closed_cb_900cfef5.png +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/support/style_cb_a90a112a.css +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/unicode/class_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/unicode/function_index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/unicode/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/html/unicode/unicode_py.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/testing/getty/gettysburg.txt +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/testing/xml/output.xml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/xml/x_xml/coverage.xml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/gold/xml/y_xml_branch/coverage.xml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/goldtest.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/helpers.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/hypo.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/js/collect_results.js +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/js/index.html +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/js/run_js_tests.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/js/tests.js +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/mixins.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/afile.odd.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/afile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/bb/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/bb/bfile.odd.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/bb/bfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/bb/cc/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/bb/cc/cfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/bb.odd/bfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/aa/zfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/ambiguous/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/ambiguous/pkg1/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/ambiguous/pkg1/ambiguous.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/checkspec.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/covmod1.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/namespace_420/sub1/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/__main__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/p1a.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/p1b.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/p1c.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/runmod2.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/sub/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/sub/__main__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/sub/ps1a.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg1/sub/runmod3.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg2/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg2/p2a.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/pkg2/p2b.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/plugins/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/plugins/a_plugin.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/plugins/another.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/process_test/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/process_test/try_execfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/runmod1.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/modules/usepkgs.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/namespace_420/sub2/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/othermods/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/othermods/othera.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/othermods/otherb.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/othermods/sub/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/othermods/sub/osa.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/moremodules/othermods/sub/osb.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/osinfo.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/oss-scanner/Dockerfile +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/oss-scanner/README.rst +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/oss-scanner/local_run.sh +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/oss-scanner/project.yaml +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/oss-scanner/threat_model.md +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/plugin1.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/plugin2.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/plugin_config.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/select_plugin.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/smoke.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/strategies.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/stress_phystoken.tok +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/stress_phystoken_dos.tok +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_annotate.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_bytecode.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_collector.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_config.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_context.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_core.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_coverage.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_execfile.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_filereporter.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_files.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_goldtest.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_json.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_lcov.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_misc.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_mixins.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_numbits.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_oddball.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_parser.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_phystokens.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_plugins.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_process.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_python.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_regions.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_report.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_report_common.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_report_core.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_setup.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_sqlitedb.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_sysmon.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_templite.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_testing.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_venv.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_version.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/test_xml.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/testenv.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/zipsrc/zip1/__init__.py +0 -0
- {coverage-7.17.0 → coverage-7.17.1}/tests/zipsrc/zip1/zip1.py +0 -0
|
@@ -55,7 +55,7 @@ jobs:
|
|
|
55
55
|
|
|
56
56
|
# Initializes the CodeQL tools for scanning.
|
|
57
57
|
- name: Initialize CodeQL
|
|
58
|
-
uses: github/codeql-action/init@
|
|
58
|
+
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
|
59
59
|
with:
|
|
60
60
|
languages: ${{ matrix.language }}
|
|
61
61
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
@@ -66,7 +66,7 @@ jobs:
|
|
|
66
66
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
67
67
|
# If this step fails, then you should remove it and run the build manually (see below)
|
|
68
68
|
- name: Autobuild
|
|
69
|
-
uses: github/codeql-action/autobuild@
|
|
69
|
+
uses: github/codeql-action/autobuild@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
|
70
70
|
|
|
71
71
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
72
72
|
# 📚 https://git.io/JvXDl
|
|
@@ -80,4 +80,4 @@ jobs:
|
|
|
80
80
|
# make release
|
|
81
81
|
|
|
82
82
|
- name: Perform CodeQL Analysis
|
|
83
|
-
uses: github/codeql-action/analyze@
|
|
83
|
+
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
|
@@ -116,7 +116,7 @@ jobs:
|
|
|
116
116
|
persist-credentials: false
|
|
117
117
|
|
|
118
118
|
- name: "Set up Python"
|
|
119
|
-
uses: actions/setup-python@
|
|
119
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
120
120
|
with:
|
|
121
121
|
python-version: "${{ matrix.python-version }}"
|
|
122
122
|
allow-prereleases: true
|
|
@@ -178,7 +178,7 @@ jobs:
|
|
|
178
178
|
fetch-depth: 200
|
|
179
179
|
|
|
180
180
|
- name: "Set up Python"
|
|
181
|
-
uses: actions/setup-python@
|
|
181
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
182
182
|
with:
|
|
183
183
|
python-version: "3.11" # Minimum of PYVERSIONS
|
|
184
184
|
cache: pip
|
|
@@ -278,6 +278,9 @@ jobs:
|
|
|
278
278
|
--format markdown:report.md \
|
|
279
279
|
|| status=$?
|
|
280
280
|
cat report.md >> "$GITHUB_STEP_SUMMARY"
|
|
281
|
+
if [ -n "${status}" ]; then
|
|
282
|
+
echo '::error::Changed lines are not fully covered! Add tests, or label the PR "missing-coverage-ok" then close and re-open it.'
|
|
283
|
+
fi
|
|
281
284
|
exit "${status:-0}"
|
|
282
285
|
|
|
283
286
|
publish:
|
|
@@ -212,7 +212,7 @@ jobs:
|
|
|
212
212
|
|
|
213
213
|
- name: "Install Python"
|
|
214
214
|
if: ${{ matrix.arch != 'ppc64le' }}
|
|
215
|
-
uses: actions/setup-python@
|
|
215
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
216
216
|
with:
|
|
217
217
|
python-version: "${{ matrix.cipy }}"
|
|
218
218
|
cache: pip
|
|
@@ -277,7 +277,7 @@ jobs:
|
|
|
277
277
|
persist-credentials: false
|
|
278
278
|
|
|
279
279
|
- name: "Install Python"
|
|
280
|
-
uses: actions/setup-python@
|
|
280
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
281
281
|
with:
|
|
282
282
|
python-version: "3.11" # PYVERSIONS: the kit-building version
|
|
283
283
|
cache: pip
|
|
@@ -91,7 +91,7 @@ jobs:
|
|
|
91
91
|
subject-path: "dist/*"
|
|
92
92
|
|
|
93
93
|
- name: "Publish dists to Test PyPI"
|
|
94
|
-
uses: pypa/gh-action-pypi-publish@
|
|
94
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
95
95
|
with:
|
|
96
96
|
repository-url: https://test.pypi.org/legacy/
|
|
97
97
|
|
|
@@ -132,4 +132,4 @@ jobs:
|
|
|
132
132
|
subject-path: "dist/*"
|
|
133
133
|
|
|
134
134
|
- name: "Publish dists to PyPI"
|
|
135
|
-
uses: pypa/gh-action-pypi-publish@
|
|
135
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -80,7 +80,7 @@ jobs:
|
|
|
80
80
|
persist-credentials: false
|
|
81
81
|
|
|
82
82
|
- name: "Install Python"
|
|
83
|
-
uses: actions/setup-python@
|
|
83
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
84
84
|
with:
|
|
85
85
|
python-version: "3.11" # Minimum of PYVERSIONS
|
|
86
86
|
cache: pip
|
|
@@ -110,7 +110,7 @@ jobs:
|
|
|
110
110
|
persist-credentials: false
|
|
111
111
|
|
|
112
112
|
- name: "Install Python"
|
|
113
|
-
uses: actions/setup-python@
|
|
113
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
114
114
|
with:
|
|
115
115
|
python-version: "3.11" # Minimum of PYVERSIONS
|
|
116
116
|
cache: pip
|
|
@@ -145,7 +145,7 @@ jobs:
|
|
|
145
145
|
git fetch origin main --depth=1
|
|
146
146
|
|
|
147
147
|
- name: "Install Python"
|
|
148
|
-
uses: actions/setup-python@
|
|
148
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
149
149
|
with:
|
|
150
150
|
python-version: "3.12" # Doc version from PYVERSIONS
|
|
151
151
|
cache: pip
|
|
@@ -185,7 +185,7 @@ jobs:
|
|
|
185
185
|
persist-credentials: false
|
|
186
186
|
|
|
187
187
|
- name: "Install uv"
|
|
188
|
-
uses: astral-sh/setup-uv@
|
|
188
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
189
189
|
with:
|
|
190
190
|
enable-cache: false
|
|
191
191
|
|
|
@@ -126,7 +126,7 @@ jobs:
|
|
|
126
126
|
persist-credentials: false
|
|
127
127
|
|
|
128
128
|
- name: "Set up Python"
|
|
129
|
-
uses: actions/setup-python@
|
|
129
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
130
130
|
with:
|
|
131
131
|
python-version: "${{ matrix.python-version }}"
|
|
132
132
|
allow-prereleases: true
|
|
@@ -185,7 +185,7 @@ jobs:
|
|
|
185
185
|
persist-credentials: false
|
|
186
186
|
|
|
187
187
|
- name: "Set up Python"
|
|
188
|
-
uses: actions/setup-python@
|
|
188
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
189
189
|
with:
|
|
190
190
|
python-version: "3.11" # Minimum of PYVERSIONS
|
|
191
191
|
cache: pip
|
|
@@ -22,6 +22,46 @@ upgrading your version of coverage.py.
|
|
|
22
22
|
|
|
23
23
|
.. start-releases
|
|
24
24
|
|
|
25
|
+
.. _changes_7-17-1:
|
|
26
|
+
|
|
27
|
+
Version 7.17.1 — 2026-11-03
|
|
28
|
+
---------------------------
|
|
29
|
+
|
|
30
|
+
- Fix: a one-line class or function body immediately followed by another
|
|
31
|
+
statement (such as ``class Foo: ...`` on its own line) was incorrectly
|
|
32
|
+
reported as a missing branch when using the sys.monitoring core. This is now
|
|
33
|
+
fixed, closing `issue 2167`_ and `issue 2337`_.
|
|
34
|
+
|
|
35
|
+
- Fix: the HTML report only rewrites a file's page when the file or its data
|
|
36
|
+
has changed, but each page also links to the previous and next files. When
|
|
37
|
+
the set of reported files changed, unchanged pages kept their old links. For
|
|
38
|
+
example, with ``skip_covered``, a file that became 100% covered had its page
|
|
39
|
+
deleted, but the pages next to it still linked to it. Now a page is also
|
|
40
|
+
rewritten when its neighbors change.
|
|
41
|
+
|
|
42
|
+
- Fix: ``--fail-under`` now uses at least the decimal precision of the
|
|
43
|
+
threshold for both the comparison and failure message. With ``precision=0``,
|
|
44
|
+
a total of 0.4 now passes ``--fail-under=0.3`` and fails ``--fail-under=0.5``
|
|
45
|
+
with the message "total of 0.4 is less than fail-under=0.5". Previously, the
|
|
46
|
+
comparison rounded the total to zero and the message could claim "1 is less
|
|
47
|
+
than 0". Closes `issue 2295`_.
|
|
48
|
+
|
|
49
|
+
- Fix: the HTML report escaped file names twice, so a name with ``&``, ``<``,
|
|
50
|
+
or quotes in it was shown with entities like ``&``. Now they are properly
|
|
51
|
+
escaped only once.
|
|
52
|
+
|
|
53
|
+
- Fix: ``--source=/`` measured no files. A file system root can't be a source
|
|
54
|
+
directory, so now it is an error. Closes `issue 2291`_.
|
|
55
|
+
|
|
56
|
+
- In an abundance of caution, prevent forged SQLite journal files from deleting
|
|
57
|
+
files they shouldn't.
|
|
58
|
+
|
|
59
|
+
.. _issue 2167: https://github.com/coveragepy/coveragepy/issues/2167
|
|
60
|
+
.. _issue 2291: https://github.com/coveragepy/coveragepy/issues/2291
|
|
61
|
+
.. _issue 2295: https://github.com/coveragepy/coveragepy/issues/2295
|
|
62
|
+
.. _issue 2337: https://github.com/coveragepy/coveragepy/issues/2337
|
|
63
|
+
|
|
64
|
+
|
|
25
65
|
.. _changes_7-17-0:
|
|
26
66
|
|
|
27
67
|
Version 7.17.0 — 2026-10-22
|
|
@@ -27,7 +27,7 @@ ifdef HAS_UV
|
|
|
27
27
|
INSTALL_R := uv pip sync
|
|
28
28
|
UNINSTALL := uv pip uninstall
|
|
29
29
|
else
|
|
30
|
-
VENV :=
|
|
30
|
+
VENV := python3.11 -m venv .venv
|
|
31
31
|
INSTALL := python -m pip install
|
|
32
32
|
INSTALL_R := python -m pip install -r
|
|
33
33
|
UNINSTALL := python -m pip uninstall -y
|
|
@@ -166,7 +166,7 @@ diff_upgrade: #- Summarize the last `make upgrade`.
|
|
|
166
166
|
@# +bashlex==0.17
|
|
167
167
|
@# -build==0.9.0
|
|
168
168
|
@# +build==0.10.0
|
|
169
|
-
@git diff -U0 | grep -v '^@' | grep == | sort -k1.2,1.99 -k1.1,1.1r -u -V
|
|
169
|
+
@git diff -U0 $(since) | grep -v '^@' | grep == | sort -k1.2,1.99 -k1.1,1.1r -u -V
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
### Pre-builds for prepping the code
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: coverage
|
|
3
|
-
Version: 7.17.
|
|
3
|
+
Version: 7.17.1
|
|
4
4
|
Summary: Code coverage measurement for Python
|
|
5
5
|
Home-page: https://github.com/coveragepy/coveragepy
|
|
6
6
|
Author: Ned Batchelder and many others
|
|
7
7
|
Author-email: ned@nedbatchelder.com
|
|
8
8
|
License: Apache-2.0
|
|
9
|
-
Project-URL: Documentation, https://coverage.readthedocs.io/en/7.17.
|
|
9
|
+
Project-URL: Documentation, https://coverage.readthedocs.io/en/7.17.1
|
|
10
10
|
Project-URL: Funding, https://tidelift.com/subscription/pkg/pypi-coverage?utm_source=pypi-coverage&utm_medium=referral&utm_campaign=pypi
|
|
11
11
|
Project-URL: Issues, https://github.com/coveragepy/coveragepy/issues
|
|
12
12
|
Project-URL: Mastodon, https://hachyderm.io/@coveragepy
|
|
@@ -81,7 +81,7 @@ Coverage.py runs on these versions of Python:
|
|
|
81
81
|
Documentation is on `Read the Docs`_. Code repository and issue tracker are on
|
|
82
82
|
`GitHub`_.
|
|
83
83
|
|
|
84
|
-
.. _Read the Docs: https://coverage.readthedocs.io/en/7.17.
|
|
84
|
+
.. _Read the Docs: https://coverage.readthedocs.io/en/7.17.1/
|
|
85
85
|
.. _GitHub: https://github.com/coveragepy/coveragepy
|
|
86
86
|
|
|
87
87
|
|
|
@@ -110,7 +110,7 @@ Getting Started
|
|
|
110
110
|
Looking to run ``coverage`` on your test suite? See the `Quick Start section`_
|
|
111
111
|
of the docs.
|
|
112
112
|
|
|
113
|
-
.. _Quick Start section: https://coverage.readthedocs.io/en/7.17.
|
|
113
|
+
.. _Quick Start section: https://coverage.readthedocs.io/en/7.17.1/#quick-start
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
Change history
|
|
@@ -118,7 +118,7 @@ Change history
|
|
|
118
118
|
|
|
119
119
|
The complete history of changes is on the `change history page`_.
|
|
120
120
|
|
|
121
|
-
.. _change history page: https://coverage.readthedocs.io/en/7.17.
|
|
121
|
+
.. _change history page: https://coverage.readthedocs.io/en/7.17.1/changes.html
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
Code of Conduct
|
|
@@ -137,7 +137,7 @@ Contributing
|
|
|
137
137
|
Found a bug? Want to help improve the code or documentation? See the
|
|
138
138
|
`Contributing section`_ of the docs.
|
|
139
139
|
|
|
140
|
-
.. _Contributing section: https://coverage.readthedocs.io/en/7.17.
|
|
140
|
+
.. _Contributing section: https://coverage.readthedocs.io/en/7.17.1/contributing.html
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
Security
|
|
@@ -165,7 +165,7 @@ Licensed under the `Apache 2.0 License`_. For details, see `NOTICE.txt`_.
|
|
|
165
165
|
:target: https://github.com/coveragepy/coveragepy/actions/workflows/quality.yml
|
|
166
166
|
:alt: Quality check status
|
|
167
167
|
.. |docs| image:: https://readthedocs.org/projects/coverage/badge/?version=latest&style=flat
|
|
168
|
-
:target: https://coverage.readthedocs.io/en/7.17.
|
|
168
|
+
:target: https://coverage.readthedocs.io/en/7.17.1/
|
|
169
169
|
:alt: Documentation
|
|
170
170
|
.. |kit| image:: https://img.shields.io/pypi/v/coverage
|
|
171
171
|
:target: https://pypi.org/project/coverage/
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
"""Trigger a repository_dispatch GitHub action."""
|
|
5
5
|
|
|
6
|
+
import json
|
|
6
7
|
import sys
|
|
7
8
|
import time
|
|
8
9
|
|
|
@@ -26,7 +27,12 @@ def latest_action_run(repo_owner, event):
|
|
|
26
27
|
f"https://api.github.com/repos/{repo_owner}/actions/runs?event={event}"
|
|
27
28
|
)
|
|
28
29
|
resp.raise_for_status()
|
|
29
|
-
|
|
30
|
+
try:
|
|
31
|
+
return resp.json()["workflow_runs"][0]
|
|
32
|
+
except Exception as e:
|
|
33
|
+
print("Couldn't get workflow_runs from:")
|
|
34
|
+
print(json.dumps(resp.json(), indent=4))
|
|
35
|
+
raise RuntimeError("Stopping") from e
|
|
30
36
|
|
|
31
37
|
|
|
32
38
|
def dispatch_action(repo_owner, event_type):
|
|
@@ -26,7 +26,7 @@ from coverage.data import CoverageData, combinable_files, debug_data_file
|
|
|
26
26
|
from coverage.debug import info_header, short_stack, write_formatted_info
|
|
27
27
|
from coverage.exceptions import CoverageException, NoSource, _ExceptionDuringRun
|
|
28
28
|
from coverage.execfile import PyRunner
|
|
29
|
-
from coverage.results import
|
|
29
|
+
from coverage.results import format_fail_under_msg, should_fail_under
|
|
30
30
|
from coverage.version import __url__
|
|
31
31
|
|
|
32
32
|
# When adding to this file, alphabetization is important. Look for
|
|
@@ -942,12 +942,7 @@ class CoverageScript:
|
|
|
942
942
|
fail_under = cast(float, self.coverage.get_option("report:fail_under"))
|
|
943
943
|
precision = cast(int, self.coverage.get_option("report:precision"))
|
|
944
944
|
if should_fail_under(total, fail_under, precision):
|
|
945
|
-
|
|
946
|
-
total=display_covered(total, precision),
|
|
947
|
-
fail_under=fail_under,
|
|
948
|
-
p=precision,
|
|
949
|
-
)
|
|
950
|
-
print("Coverage failure:", msg)
|
|
945
|
+
print("Coverage failure:", format_fail_under_msg(total, fail_under, precision))
|
|
951
946
|
return FAIL_UNDER
|
|
952
947
|
|
|
953
948
|
return OK
|
|
@@ -203,7 +203,7 @@ def combine_parallel_data(
|
|
|
203
203
|
if data._debug.should("dataio"):
|
|
204
204
|
data._debug.write(f"Combining data file {f!r}")
|
|
205
205
|
try:
|
|
206
|
-
new_data = CoverageData(f, debug=data._debug)
|
|
206
|
+
new_data = CoverageData(f, debug=data._debug, read_only=True)
|
|
207
207
|
new_data.read()
|
|
208
208
|
except CoverageException as exc:
|
|
209
209
|
errored += 1
|
|
@@ -244,7 +244,7 @@ def combine_parallel_data(
|
|
|
244
244
|
|
|
245
245
|
def debug_data_file(filename: str) -> None:
|
|
246
246
|
"""Implementation of 'coverage debug data'."""
|
|
247
|
-
data = CoverageData(filename)
|
|
247
|
+
data = CoverageData(filename, read_only=True)
|
|
248
248
|
filename = data.data_filename()
|
|
249
249
|
print(f"path: {filename}")
|
|
250
250
|
if not os.path.exists(filename):
|
|
@@ -577,7 +577,7 @@ def find_python_files(dirname: str, include_namespace_packages: bool) -> Iterabl
|
|
|
577
577
|
# We're only interested in files that look like reasonable Python
|
|
578
578
|
# files: Must end with .py or .pyw, and must not have certain funny
|
|
579
579
|
# characters that probably mean they are editor junk.
|
|
580
|
-
if re.
|
|
580
|
+
if re.fullmatch(r"[^.#~!$@%^&*()+=,]+\.pyw?", filename):
|
|
581
581
|
yield os.path.join(dirpath, filename)
|
|
582
582
|
|
|
583
583
|
|
|
@@ -477,7 +477,7 @@ class HtmlReporter:
|
|
|
477
477
|
|
|
478
478
|
"""
|
|
479
479
|
# Find out if the page on disk is already correct.
|
|
480
|
-
if self.incr.can_skip_file(self.data, ftr
|
|
480
|
+
if self.incr.can_skip_file(self.data, ftr):
|
|
481
481
|
self.index_pages["file"].summaries.append(self.incr.index_info(ftr.rootname))
|
|
482
482
|
return
|
|
483
483
|
|
|
@@ -565,7 +565,7 @@ class HtmlReporter:
|
|
|
565
565
|
# Save this file's information for the index page.
|
|
566
566
|
index_info = IndexItem(
|
|
567
567
|
url=ftr.html_filename,
|
|
568
|
-
file=
|
|
568
|
+
file=ftr.fr.relative_filename(),
|
|
569
569
|
nums=ftr.analysis.numbers,
|
|
570
570
|
)
|
|
571
571
|
self.index_pages["file"].summaries.append(index_info)
|
|
@@ -615,7 +615,7 @@ class HtmlReporter:
|
|
|
615
615
|
page_data.summaries.append(
|
|
616
616
|
IndexItem(
|
|
617
617
|
url=f"{ftr.html_filename}#t{region.start}",
|
|
618
|
-
file=
|
|
618
|
+
file=ftr.fr.relative_filename(),
|
|
619
619
|
description=(
|
|
620
620
|
f"<data value='{escape(sorting_name)}'>"
|
|
621
621
|
+ escape(region.name)
|
|
@@ -630,7 +630,7 @@ class HtmlReporter:
|
|
|
630
630
|
page_data.summaries.append(
|
|
631
631
|
IndexItem(
|
|
632
632
|
url=ftr.html_filename,
|
|
633
|
-
file=
|
|
633
|
+
file=ftr.fr.relative_filename(),
|
|
634
634
|
description=(
|
|
635
635
|
"<data value=''>"
|
|
636
636
|
+ f"<span class='no-noun'>(no {escape(noun)})</span>"
|
|
@@ -816,22 +816,24 @@ class IncrementalChecker:
|
|
|
816
816
|
self._reset()
|
|
817
817
|
self.globals = these_globals
|
|
818
818
|
|
|
819
|
-
def can_skip_file(self, data: CoverageData,
|
|
819
|
+
def can_skip_file(self, data: CoverageData, ftr: FileToReport) -> bool:
|
|
820
820
|
"""Can we skip reporting this file?
|
|
821
821
|
|
|
822
|
-
`data` is a CoverageData object, `
|
|
823
|
-
`rootname` is the name being used for the file.
|
|
822
|
+
`data` is a CoverageData object, and `ftr` is the `FileToReport`.
|
|
824
823
|
|
|
825
824
|
Returns True if the HTML page is fine as-is, False if we need to recreate
|
|
826
825
|
the HTML page.
|
|
827
826
|
|
|
828
827
|
"""
|
|
829
828
|
h = Hasher()
|
|
830
|
-
h.update(fr.source().encode("utf-8"))
|
|
831
|
-
add_data_to_hash(data, fr.filename, h)
|
|
829
|
+
h.update(ftr.fr.source().encode("utf-8"))
|
|
830
|
+
add_data_to_hash(data, ftr.fr.filename, h)
|
|
831
|
+
# The page links to the previous and next pages.
|
|
832
|
+
h.update(ftr.prev_html)
|
|
833
|
+
h.update(ftr.next_html)
|
|
832
834
|
this_hash = h.hexdigest()
|
|
833
835
|
|
|
834
|
-
file_info = self.files.setdefault(rootname, FileInfo())
|
|
836
|
+
file_info = self.files.setdefault(ftr.rootname, FileInfo())
|
|
835
837
|
|
|
836
838
|
if this_hash == file_info.hash:
|
|
837
839
|
# Nothing has changed to require the file to be reported again.
|
|
@@ -222,11 +222,13 @@ class InOrOut:
|
|
|
222
222
|
self.source_pkgs.append(src)
|
|
223
223
|
|
|
224
224
|
# Canonicalize everything in `source_dirs`.
|
|
225
|
-
# Also confirm that they actually are directories.
|
|
225
|
+
# Also confirm that they actually are directories, and not a file system root.
|
|
226
226
|
for i, src in enumerate(self.source_dirs):
|
|
227
227
|
if not os.path.isdir(src):
|
|
228
228
|
raise ConfigError(f"Source dir is not a directory: {src!r}")
|
|
229
229
|
self.source_dirs[i] = canonical_filename(src)
|
|
230
|
+
if os.path.dirname(self.source_dirs[i]) == self.source_dirs[i]:
|
|
231
|
+
raise ConfigError(f"Source dir can't be a file system root: {src!r}")
|
|
230
232
|
|
|
231
233
|
self.source_pkgs_unmatched = self.source_pkgs[:]
|
|
232
234
|
|
|
@@ -10,6 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
import collections
|
|
11
11
|
from collections.abc import Iterable
|
|
12
12
|
from dataclasses import dataclass
|
|
13
|
+
from decimal import Decimal
|
|
13
14
|
from typing import TYPE_CHECKING
|
|
14
15
|
|
|
15
16
|
from coverage.exceptions import ConfigError
|
|
@@ -483,12 +484,20 @@ def format_lines(
|
|
|
483
484
|
return ret
|
|
484
485
|
|
|
485
486
|
|
|
487
|
+
def _fail_under_precision(fail_under: float, precision: int) -> int:
|
|
488
|
+
"""Use at least enough decimal places to represent the threshold."""
|
|
489
|
+
if fail_under == int(fail_under):
|
|
490
|
+
return precision
|
|
491
|
+
exponent = Decimal(str(fail_under)).as_tuple().exponent
|
|
492
|
+
return max(precision, -int(exponent))
|
|
493
|
+
|
|
494
|
+
|
|
486
495
|
def should_fail_under(total: float, fail_under: float, precision: int) -> bool:
|
|
487
496
|
"""Determine if a total should fail due to fail-under.
|
|
488
497
|
|
|
489
498
|
`total` is a float, the coverage measurement total. `fail_under` is the
|
|
490
|
-
fail_under setting to compare with. `precision` is the number of
|
|
491
|
-
to consider after the decimal point.
|
|
499
|
+
fail_under setting to compare with. `precision` is the minimum number of
|
|
500
|
+
digits to consider after the decimal point. The threshold can imply more.
|
|
492
501
|
|
|
493
502
|
Returns True if the total should fail.
|
|
494
503
|
|
|
@@ -502,4 +511,23 @@ def should_fail_under(total: float, fail_under: float, precision: int) -> bool:
|
|
|
502
511
|
if fail_under == 100.0 and total != 100.0:
|
|
503
512
|
return True
|
|
504
513
|
|
|
505
|
-
return round(total, precision) < fail_under
|
|
514
|
+
return round(total, _fail_under_precision(fail_under, precision)) < fail_under
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
def format_fail_under_msg(total: float, fail_under: float, precision: int) -> str:
|
|
518
|
+
"""Format the fail-under failure message with values that match the check.
|
|
519
|
+
|
|
520
|
+
Use the same effective precision as `should_fail_under`, including the
|
|
521
|
+
decimal places implied by `fail_under`.
|
|
522
|
+
|
|
523
|
+
"""
|
|
524
|
+
precision = _fail_under_precision(fail_under, precision)
|
|
525
|
+
if fail_under == 100.0 and total != 100.0:
|
|
526
|
+
# The 100% special case does not use round(); keep the display clamp
|
|
527
|
+
# so near-100 totals still read as "99" rather than a rounded "100".
|
|
528
|
+
shown_total = display_covered(total, precision)
|
|
529
|
+
else:
|
|
530
|
+
shown_total = f"{round(total, precision):.{precision}f}"
|
|
531
|
+
|
|
532
|
+
shown_fail_under = f"{fail_under:.{precision}f}"
|
|
533
|
+
return f"total of {shown_total} is less than fail-under={shown_fail_under}"
|
|
@@ -37,7 +37,7 @@ from coverage.numbits import (
|
|
|
37
37
|
nums_to_numbits,
|
|
38
38
|
register_sqlite_functions,
|
|
39
39
|
)
|
|
40
|
-
from coverage.sqlitedb import SqliteDb
|
|
40
|
+
from coverage.sqlitedb import SqliteDb, read_only_uri
|
|
41
41
|
from coverage.types import FilePath, TArc, TDebugCtl, TLineNo, TWarnFn
|
|
42
42
|
from coverage.version import __version__
|
|
43
43
|
|
|
@@ -234,6 +234,7 @@ class CoverageData:
|
|
|
234
234
|
no_disk: bool = False,
|
|
235
235
|
warn: TWarnFn | None = None,
|
|
236
236
|
debug: TDebugCtl | None = None,
|
|
237
|
+
read_only: bool = False,
|
|
237
238
|
) -> None:
|
|
238
239
|
"""Create a :class:`CoverageData` object to hold coverage-measured data.
|
|
239
240
|
|
|
@@ -247,9 +248,12 @@ class CoverageData:
|
|
|
247
248
|
warn: a warning callback function, accepting a warning message
|
|
248
249
|
argument.
|
|
249
250
|
debug: a `DebugControl` object (optional)
|
|
251
|
+
read_only (bool): if True, the data file will only be read, never
|
|
252
|
+
written. Use this for data files from other sources.
|
|
250
253
|
|
|
251
254
|
"""
|
|
252
255
|
self._no_disk = no_disk
|
|
256
|
+
self._read_only = read_only
|
|
253
257
|
self._basename = os.path.abspath(basename or ".coverage")
|
|
254
258
|
self._suffix = suffix
|
|
255
259
|
self._our_suffix = suffix is True
|
|
@@ -324,7 +328,12 @@ class CoverageData:
|
|
|
324
328
|
def _open_db(self) -> None:
|
|
325
329
|
"""Open an existing db file, and read its metadata."""
|
|
326
330
|
self._debug_dataio("Opening data file", self._filename)
|
|
327
|
-
self._dbs[threading.get_ident()] = SqliteDb(
|
|
331
|
+
self._dbs[threading.get_ident()] = SqliteDb(
|
|
332
|
+
self._filename,
|
|
333
|
+
self._debug,
|
|
334
|
+
no_disk=self._no_disk,
|
|
335
|
+
read_only=self._read_only,
|
|
336
|
+
)
|
|
328
337
|
self._read_db()
|
|
329
338
|
|
|
330
339
|
def _read_db(self) -> None:
|
|
@@ -463,7 +472,9 @@ class CoverageData:
|
|
|
463
472
|
f"Unrecognized serialization: {data[:40]!r} (head of {len(data)} bytes)",
|
|
464
473
|
)
|
|
465
474
|
script = zlib.decompress(data[1:]).decode("utf-8")
|
|
466
|
-
self._dbs[threading.get_ident()] = db = SqliteDb(
|
|
475
|
+
self._dbs[threading.get_ident()] = db = SqliteDb(
|
|
476
|
+
self._filename, self._debug, no_disk=self._no_disk
|
|
477
|
+
)
|
|
467
478
|
with db:
|
|
468
479
|
db.executescript(script)
|
|
469
480
|
self._read_db()
|
|
@@ -776,8 +787,13 @@ class CoverageData:
|
|
|
776
787
|
|
|
777
788
|
con.con.create_function("map_path", 1, map_with_fixed_slashes)
|
|
778
789
|
|
|
779
|
-
# Attach the other database
|
|
780
|
-
|
|
790
|
+
# Attach the other database, read-only: we never write to it, and
|
|
791
|
+
# it might have come from somewhere else, so be as careful as
|
|
792
|
+
# possible.
|
|
793
|
+
other_filename = other_data.data_filename()
|
|
794
|
+
if not other_filename.startswith("file:"):
|
|
795
|
+
other_filename = read_only_uri(other_filename)
|
|
796
|
+
con.execute_void("ATTACH DATABASE ? AS other_db", (other_filename,))
|
|
781
797
|
|
|
782
798
|
# Create temporary table with mapped file paths to avoid repeated map_path() calls
|
|
783
799
|
con.execute_void("""
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
10
|
import contextlib
|
|
11
|
+
import os
|
|
12
|
+
import pathlib
|
|
11
13
|
import re
|
|
12
14
|
import sqlite3
|
|
13
15
|
from collections.abc import Iterable, Iterator
|
|
@@ -18,6 +20,44 @@ from coverage.exceptions import DataError
|
|
|
18
20
|
from coverage.types import TDebugCtl
|
|
19
21
|
|
|
20
22
|
|
|
23
|
+
def read_only_uri(filename: str) -> str:
|
|
24
|
+
"""Make a URI to open `filename` read-only.
|
|
25
|
+
|
|
26
|
+
Opening a database read-write lets SQLite act on files beside it: a hot
|
|
27
|
+
`*-journal` file gets rolled back, and the "super-journal" it names gets
|
|
28
|
+
deleted. Data files we only read (combine inputs, for example) can come
|
|
29
|
+
from anywhere, so open them with `immutable=1`, which makes SQLite ignore
|
|
30
|
+
journals and locks entirely.
|
|
31
|
+
|
|
32
|
+
"""
|
|
33
|
+
return pathlib.Path(os.path.abspath(filename)).as_uri() + "?mode=ro&immutable=1"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def check_hot_journal(filename: str) -> None:
|
|
37
|
+
"""Raise DataError if SQLite would roll back a journal beside `filename`.
|
|
38
|
+
|
|
39
|
+
When a database is opened read-write, SQLite rolls back a hot journal
|
|
40
|
+
beside it, then deletes the "super-journal" the journal names, which could
|
|
41
|
+
be any file at all. Coverage.py turn journaling off, so a journal like
|
|
42
|
+
that is almost certainly not ours. A read-only connection won't roll back,
|
|
43
|
+
but reports the hot journal instead, so probe with one of those first.
|
|
44
|
+
This lets SQLite decide where the journal is and whether it is hot.
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
if not os.path.exists(filename):
|
|
48
|
+
return
|
|
49
|
+
uri = pathlib.Path(os.path.abspath(filename)).as_uri() + "?mode=ro"
|
|
50
|
+
try:
|
|
51
|
+
with contextlib.closing(sqlite3.connect(uri, uri=True)) as con:
|
|
52
|
+
con.execute("select count(*) from sqlite_master").fetchall()
|
|
53
|
+
except sqlite3.Error as exc:
|
|
54
|
+
if exc.sqlite_errorcode == sqlite3.SQLITE_READONLY_ROLLBACK:
|
|
55
|
+
raise DataError(
|
|
56
|
+
f"Couldn't use data file {filename!r}: it has a journal file to roll back"
|
|
57
|
+
) from exc
|
|
58
|
+
# Other errors will be reported by the real connection.
|
|
59
|
+
|
|
60
|
+
|
|
21
61
|
class SqliteDb:
|
|
22
62
|
"""A simple abstraction over a SQLite database.
|
|
23
63
|
|
|
@@ -31,10 +71,18 @@ class SqliteDb:
|
|
|
31
71
|
|
|
32
72
|
"""
|
|
33
73
|
|
|
34
|
-
def __init__(
|
|
74
|
+
def __init__(
|
|
75
|
+
self,
|
|
76
|
+
filename: str,
|
|
77
|
+
debug: TDebugCtl,
|
|
78
|
+
*,
|
|
79
|
+
no_disk: bool = False,
|
|
80
|
+
read_only: bool = False,
|
|
81
|
+
) -> None:
|
|
35
82
|
self.debug = debug
|
|
36
83
|
self.filename = filename
|
|
37
84
|
self.no_disk = no_disk
|
|
85
|
+
self.read_only = read_only
|
|
38
86
|
self.nest = 0
|
|
39
87
|
self.con: sqlite3.Connection | None = None
|
|
40
88
|
|
|
@@ -59,12 +107,16 @@ class SqliteDb:
|
|
|
59
107
|
# is not a problem.
|
|
60
108
|
if self.debug.should("sql"):
|
|
61
109
|
self.debug.write(f"Connecting to {self.filename!r}")
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if self.
|
|
65
|
-
|
|
110
|
+
filename = self.filename
|
|
111
|
+
if not filename.startswith("file:"):
|
|
112
|
+
if self.read_only:
|
|
113
|
+
filename = read_only_uri(filename)
|
|
66
114
|
else:
|
|
67
|
-
|
|
115
|
+
check_hot_journal(filename)
|
|
116
|
+
try:
|
|
117
|
+
# uri=True is needed for memory and read-only URIs, and is harmless
|
|
118
|
+
# for plain file names. It also makes ATTACH honor URIs.
|
|
119
|
+
self.con = sqlite3.connect(filename, check_same_thread=False, uri=True)
|
|
68
120
|
except sqlite3.Error as exc:
|
|
69
121
|
self._raise_data_error(f"Couldn't use data file {self.filename!r}", exc)
|
|
70
122
|
|