coverage 7.17.2__tar.gz → 7.17.3__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.3/.github/CONTRIBUTING.rst +281 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/coverage.yml +8 -5
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/kit.yml +10 -6
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/quality.yml +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/testsuite.yml +3 -0
- {coverage-7.17.2 → coverage-7.17.3}/.gitignore +0 -2
- {coverage-7.17.2 → coverage-7.17.3}/.pre-commit-config.yaml +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/CHANGES.rst +44 -2
- {coverage-7.17.2 → coverage-7.17.3}/MANIFEST.in +3 -4
- {coverage-7.17.2 → coverage-7.17.3}/Makefile +100 -105
- {coverage-7.17.2/coverage.egg-info → coverage-7.17.3}/PKG-INFO +18 -13
- {coverage-7.17.2 → coverage-7.17.3}/README.rst +11 -6
- {coverage-7.17.2 → coverage-7.17.3}/coverage/control.py +27 -10
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/tracer.c +9 -1
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/util.h +15 -2
- {coverage-7.17.2 → coverage-7.17.3}/coverage/jsonreport.py +13 -5
- {coverage-7.17.2 → coverage-7.17.3}/coverage/sqldata.py +4 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/sqlitedb.py +6 -1
- {coverage-7.17.2 → coverage-7.17.3}/coverage/version.py +1 -1
- {coverage-7.17.2 → coverage-7.17.3/coverage.egg-info}/PKG-INFO +18 -13
- {coverage-7.17.2 → coverage-7.17.3}/coverage.egg-info/SOURCES.txt +13 -9
- {coverage-7.17.2 → coverage-7.17.3}/doc/changes.rst +2 -2
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_html.rst +1 -3
- {coverage-7.17.2 → coverage-7.17.3}/doc/conf.py +9 -4
- coverage-7.17.3/doc/contributing.rst +281 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/faq.rst +3 -2
- {coverage-7.17.2 → coverage-7.17.3}/doc/index.rst +8 -16
- {coverage-7.17.2 → coverage-7.17.3}/doc/messages.rst +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/doc/requirements.txt +25 -14
- coverage-7.17.3/news/README.txt +1 -0
- coverage-7.17.3/news/new_fragment.rst.j2 +17 -0
- {coverage-7.17.2 → coverage-7.17.3}/pyproject.toml +10 -11
- {coverage-7.17.2 → coverage-7.17.3}/requirements/dev.txt +153 -141
- {coverage-7.17.2 → coverage-7.17.3}/requirements/kit.txt +12 -12
- {coverage-7.17.2 → coverage-7.17.3}/requirements/mypy.txt +141 -140
- {coverage-7.17.2 → coverage-7.17.3}/requirements/pins.txt +5 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/pip.txt +9 -9
- {coverage-7.17.2 → coverage-7.17.3}/requirements/pytest.txt +88 -87
- {coverage-7.17.2 → coverage-7.17.3}/requirements/tox.txt +21 -21
- {coverage-7.17.2 → coverage-7.17.3}/tests/coveragetest.py +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/Makefile +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/tests/helpers.py +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/tests/oss-scanner/threat_model.md +2 -2
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_api.py +10 -10
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_concurrency.py +6 -3
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_config.py +1 -1
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_context.py +5 -8
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_data.py +36 -4
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_json.py +106 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_oddball.py +1 -2
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_process.py +114 -3
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_report.py +22 -25
- coverage-7.17.3/tools/README.txt +1 -0
- coverage-7.17.3/tools/gh_release.toml +22 -0
- {coverage-7.17.2 → coverage-7.17.3/tools}/igor.py +6 -13
- {coverage-7.17.2 → coverage-7.17.3/tools}/metacov.ini +3 -8
- coverage-7.17.2/howto.txt → coverage-7.17.3/tools/release.txt +5 -9
- {coverage-7.17.2 → coverage-7.17.3}/tox.ini +10 -10
- coverage-7.17.2/ci/README.txt +0 -1
- coverage-7.17.2/doc/contributing.rst +0 -351
- {coverage-7.17.2 → coverage-7.17.3}/.editorconfig +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.git-blame-ignore-revs +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/CODE_OF_CONDUCT.md +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/FUNDING.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/ISSUE_TEMPLATE/support.md +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/SECURITY.md +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/dependabot.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/codeql-analysis.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/dependency-review.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/publish.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/workflows/python-nightly.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.github/zizmor.yml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.ignore +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/.readthedocs.yaml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/CITATION.cff +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/CONTRIBUTORS.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/LICENSE.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/NOTICE.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/__main__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/a1_coverage.pth +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/__main__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/annotate.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/bytecode.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/cmdline.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/collector.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/config.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/context.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/core.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/datastack.c +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/datastack.h +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/filedisp.c +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/filedisp.h +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/module.c +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/stats.h +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/ctracer/tracer.h +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/data.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/debug.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/disposition.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/env.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/exceptions.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/execfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/files.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/html.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/coverage_html.js +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/favicon_32.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/keybd_closed.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/pyfile.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/style.css +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/htmlfiles/style.scss +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/inorout.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/lcovreport.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/misc.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/multiproc.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/numbits.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/parser.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/patch.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/phystokens.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/plugin.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/plugin_support.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/pth_file.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/py.typed +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/python.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/pytracer.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/regions.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/report.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/report_core.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/results.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/sysmon.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/templite.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/tomlconfig.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/tracer.pyi +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/types.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage/xmlreport.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage.egg-info/dependency_links.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage.egg-info/entry_points.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage.egg-info/not-zip-safe +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage.egg-info/requires.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/coverage.egg-info/top_level.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/_static/coverage.css +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/api.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/api_coverage.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/api_coveragedata.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/api_exceptions.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/api_module.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/api_plugin.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/branch.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/cog_helpers.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_annotate.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_combine.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_debug.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_erase.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_json.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_lcov.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_report.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_reporting.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_run.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/cmd_xml.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/commands/index.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/config.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/contexts.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/dbschema.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/dict.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/excluding.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/howitworks.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/install.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White_small.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/media/sleepy-snake-600.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/media/sleepy-snake-circle-150.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/migrating.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/other.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/plugins.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/python-coverage.1.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/requirements.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/sleepy.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/source.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/subprocess.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/trouble.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/doc/whatsnew5x.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/README.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/branches.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/compare_times.sh +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/coverage-04.dtd +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/extract_code.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/goals.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/hack_pyc.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/notes/arcs-to-branches.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/notes/bug1303.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/notes/pypy-738-decorated-functions.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/parse_all.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/parser.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/pick.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/platform_info.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/run_sysmon.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/run_trace.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/select_contexts.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/show_platform.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/show_pyc.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/treetopy.sh +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/warn_executed.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/lab/warn_executed.toml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/dev.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/js.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/js.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/kit.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/light-threads.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/light-threads.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/mypy.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/pip.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/pytest.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/requirements/tox.in +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/setup.cfg +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/setup.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/conftest.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/covmodzip1.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/README.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/anno_dir/multi.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/anno_dir/z_80084bf2fba02475___init__.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/anno_dir/z_80084bf2fba02475_a.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/anno_dir/z_b039179a8a4ce2c2___init__.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/anno_dir/z_b039179a8a4ce2c2_b.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/encodings/utf8.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/mae/mae.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/multi/a/__init__.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/multi/a/a.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/multi/b/__init__.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/multi/b/b.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/multi/multi.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/annotate/white/white.py,cover +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/a/a_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/a/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/a/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/a/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/b_branch/b_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/b_branch/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/b_branch/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/b_branch/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/bom/bom_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/bom/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/bom/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/bom/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/contexts/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/contexts/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/contexts/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/contexts/two_tests_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/isolatin1/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/isolatin1/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/isolatin1/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/isolatin1/isolatin1_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/multiline/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/multiline/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/multiline/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/multiline/multiline_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/m1_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/m2_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/m3_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_1/main_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_2/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_2/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_2/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_2/m2_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_2/m3_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_2/main_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_3/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_3/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_3/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_3/m3_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_3/main_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_4/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_4/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_4/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_4/m1_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_4/m3_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_4/main_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_5/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_5/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_5/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_5/m1_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/omit_5/main_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/other/blah_blah_other_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/other/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/other/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/other/here_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/other/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/partial/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/partial/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/partial/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/partial/partial_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/styled/a_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/styled/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/styled/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/styled/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/styled/myextra.css +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/styled/style.css +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/support/coverage_html_cb_dd2e7eb5.js +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/support/favicon_32_cb_c827f16f.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/support/keybd_closed_cb_900cfef5.png +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/support/style_cb_a90a112a.css +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/unicode/class_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/unicode/function_index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/unicode/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/html/unicode/unicode_py.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/testing/getty/gettysburg.txt +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/testing/xml/output.xml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/xml/x_xml/coverage.xml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/gold/xml/y_xml_branch/coverage.xml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/goldtest.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/hypo.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/js/collect_results.js +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/js/index.html +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/js/run_js_tests.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/js/tests.js +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/mixins.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/afile.odd.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/afile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/bb/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/bb/bfile.odd.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/bb/bfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/bb/cc/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/bb/cc/cfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/bb.odd/bfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/aa/zfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/ambiguous/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/ambiguous/pkg1/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/ambiguous/pkg1/ambiguous.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/checkspec.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/covmod1.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/namespace_420/sub1/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/__main__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/p1a.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/p1b.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/p1c.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/runmod2.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/sub/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/sub/__main__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/sub/ps1a.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg1/sub/runmod3.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg2/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg2/p2a.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/pkg2/p2b.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/plugins/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/plugins/a_plugin.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/plugins/another.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/process_test/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/process_test/try_execfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/runmod1.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/modules/usepkgs.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/namespace_420/sub2/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/othermods/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/othermods/othera.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/othermods/otherb.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/othermods/sub/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/othermods/sub/osa.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/moremodules/othermods/sub/osb.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/osinfo.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/oss-scanner/Dockerfile +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/oss-scanner/README.rst +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/oss-scanner/local_run.sh +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/oss-scanner/project.yaml +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/plugin1.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/plugin2.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/plugin_config.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/select_plugin.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/smoke.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/strategies.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/stress_phystoken.tok +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/stress_phystoken_dos.tok +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_annotate.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_arcs.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_bytecode.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_cmdline.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_collector.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_core.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_coverage.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_debug.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_execfile.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_filereporter.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_files.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_goldtest.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_html.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_lcov.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_misc.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_mixins.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_numbits.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_parser.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_phystokens.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_plugins.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_python.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_regions.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_report_common.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_report_core.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_results.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_setup.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_sqlitedb.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_sysmon.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_templite.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_testing.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_venv.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_version.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/test_xml.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/testenv.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/zipsrc/zip1/__init__.py +0 -0
- {coverage-7.17.2 → coverage-7.17.3}/tests/zipsrc/zip1/zip1.py +0 -0
- {coverage-7.17.2/ci → coverage-7.17.3/tools}/comment_on_fixes.py +0 -0
- {coverage-7.17.2/ci → coverage-7.17.3/tools}/session.py +0 -0
- {coverage-7.17.2/ci → coverage-7.17.3/tools}/trigger_action.py +0 -0
- {coverage-7.17.2/ci → coverage-7.17.3/tools}/update_rtfd.py +0 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
|
|
2
|
+
.. For details: https://github.com/coveragepy/coveragepy/blob/main/NOTICE.txt
|
|
3
|
+
|
|
4
|
+
.. This file is symlinked as .github/CONTRIBUTING.rst, so only use .rst that
|
|
5
|
+
.. will work in GitHub's rendering.
|
|
6
|
+
|
|
7
|
+
.. PYVERSIONS: search for "3" through this file to update min/max versions
|
|
8
|
+
|
|
9
|
+
.. _contributing:
|
|
10
|
+
|
|
11
|
+
===========================
|
|
12
|
+
Contributing to coverage.py
|
|
13
|
+
===========================
|
|
14
|
+
|
|
15
|
+
.. highlight:: console
|
|
16
|
+
|
|
17
|
+
We welcome contributions to coverage.py. Over the years, hundreds of people
|
|
18
|
+
have provided contributions of various sizes to add features, fix bugs, or just
|
|
19
|
+
help diagnose thorny issues. This page should have all the information you
|
|
20
|
+
need to make a contribution.
|
|
21
|
+
|
|
22
|
+
One source of history or ideas are the `bug reports`_ against coverage.py.
|
|
23
|
+
There you can find ideas for requested features, or the remains of rejected
|
|
24
|
+
ideas.
|
|
25
|
+
|
|
26
|
+
.. _bug reports: https://github.com/coveragepy/coveragepy/issues
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Before you begin
|
|
30
|
+
----------------
|
|
31
|
+
|
|
32
|
+
If you have an idea for coverage.py, run it by us before you begin writing
|
|
33
|
+
code. This way, we can get you going in the right direction, or point you to
|
|
34
|
+
previous work in the area. Things are not always as straightforward as they
|
|
35
|
+
seem, and having the benefit of lessons learned by those before you can save
|
|
36
|
+
you frustration.
|
|
37
|
+
|
|
38
|
+
If you find an issue to work on, check if there is already a pull request in
|
|
39
|
+
process to fix it. It's better to add to an existing pull request than to
|
|
40
|
+
duplicate the work.
|
|
41
|
+
|
|
42
|
+
We have a `#coverage channel in the Python Discord <discord_>`_ that can be a
|
|
43
|
+
good place to explore ideas, get help, or help people with coverage.py.
|
|
44
|
+
`Come there <discord_>`_ after `joining the Python Discord server <join_>`_.
|
|
45
|
+
|
|
46
|
+
Cooperation and communication are essential. If you make a pull request, others
|
|
47
|
+
might make comments. You need to respond. Be concise and helpful.
|
|
48
|
+
|
|
49
|
+
.. _discord: https://discord.com/channels/267624335836053506/1253355750684753950
|
|
50
|
+
.. _join: https://discord.com/invite/python
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Getting the code
|
|
54
|
+
----------------
|
|
55
|
+
|
|
56
|
+
The coverage.py code is hosted on a GitHub repository at
|
|
57
|
+
https://github.com/coveragepy/coveragepy. To get a working environment, follow
|
|
58
|
+
these steps:
|
|
59
|
+
|
|
60
|
+
#. `Fork the repo`_ into your own GitHub account. The coverage.py code will
|
|
61
|
+
then be copied into a GitHub repository at
|
|
62
|
+
``https://github.com/GITHUB_USER/coveragepy`` where GITHUB_USER is your
|
|
63
|
+
GitHub username.
|
|
64
|
+
|
|
65
|
+
#. (Optional) Create a virtualenv to work in, and activate it. There are a
|
|
66
|
+
number of ways to do this. Use the method you are comfortable with.
|
|
67
|
+
Ideally use Python 3.11, the lowest version coverage.py currently supports.
|
|
68
|
+
|
|
69
|
+
#. Clone the repository::
|
|
70
|
+
|
|
71
|
+
$ git clone https://github.com/GITHUB_USER/coveragepy
|
|
72
|
+
$ cd coveragepy
|
|
73
|
+
|
|
74
|
+
#. Install the requirements with either of these commands::
|
|
75
|
+
|
|
76
|
+
$ make install
|
|
77
|
+
# ...or:
|
|
78
|
+
$ pip install -r requirements/dev.txt
|
|
79
|
+
|
|
80
|
+
.. _fork the repo: https://docs.github.com/en/get-started/quickstart/fork-a-repo
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
Tests
|
|
84
|
+
-----
|
|
85
|
+
|
|
86
|
+
Most of the tests are for the Python code, but we also have JavaScript tests
|
|
87
|
+
for the JavaScript in the HTML reports.
|
|
88
|
+
|
|
89
|
+
Python tests
|
|
90
|
+
............
|
|
91
|
+
|
|
92
|
+
The Python tests are a mix of unittest-style tests and pytest-style tests. They
|
|
93
|
+
are run with pytest running under `tox`_. They will run automatically via
|
|
94
|
+
GitHub actions when you push your changes to GitHub, but it's also a good idea
|
|
95
|
+
to run them locally for faster feedback::
|
|
96
|
+
|
|
97
|
+
$ make test
|
|
98
|
+
|
|
99
|
+
This uses tox to run the complete test suite a few times for each version of
|
|
100
|
+
Python you have installed. The first run uses the C implementation of the
|
|
101
|
+
trace function, the second uses the Python implementation. If
|
|
102
|
+
`sys.monitoring`_ is available, the suite will be run again with that core.
|
|
103
|
+
|
|
104
|
+
To limit tox to just a few versions of Python, run it directly using the ``-e``
|
|
105
|
+
option::
|
|
106
|
+
|
|
107
|
+
$ tox -e py311,py315
|
|
108
|
+
|
|
109
|
+
On the tox command line, options after ``--`` are passed to pytest. To run
|
|
110
|
+
just a few tests, you can use `pytest test selectors`_::
|
|
111
|
+
|
|
112
|
+
$ tox -- tests/test_misc.py
|
|
113
|
+
$ tox -- tests/test_misc.py::HasherTest
|
|
114
|
+
$ tox -- tests/test_misc.py::HasherTest::test_string_hashing
|
|
115
|
+
|
|
116
|
+
These commands run the tests in one file, one class, and just one test,
|
|
117
|
+
respectively. The pytest ``-k`` option selects tests based on a word in their
|
|
118
|
+
name, which can be very convenient for ad-hoc test selection. Of course you
|
|
119
|
+
can combine tox and pytest options::
|
|
120
|
+
|
|
121
|
+
$ tox -q -e py311 -- -n 0 -vv -k hash
|
|
122
|
+
|
|
123
|
+
You can also affect the test runs with environment variables:
|
|
124
|
+
|
|
125
|
+
- ``COVERAGE_ONE_CORE=1`` will use only one tracing core for each Python
|
|
126
|
+
version. This isn't about CPU cores, it's about the central code that tracks
|
|
127
|
+
execution. This will use the preferred core for the Python version and
|
|
128
|
+
implementation being tested.
|
|
129
|
+
|
|
130
|
+
- ``COVERAGE_TEST_CORES=...`` defines the cores to run tests on. Three cores
|
|
131
|
+
are available, specify them as a comma-separated string:
|
|
132
|
+
|
|
133
|
+
- ``ctrace`` is a sys.settrace function implemented in C.
|
|
134
|
+
- ``pytrace`` is a sys.settrace function implemented in Python.
|
|
135
|
+
- ``sysmon`` is a `sys.monitoring`_ implementation.
|
|
136
|
+
|
|
137
|
+
- ``COVERAGE_AST_DUMP=1`` will dump the AST tree as it is being used during
|
|
138
|
+
code parsing.
|
|
139
|
+
|
|
140
|
+
There are other environment variables that affect tests. `set_env.py`_ is a
|
|
141
|
+
simple terminal interface to see and set them.
|
|
142
|
+
|
|
143
|
+
Of course, run all the tests on every version of Python you have before
|
|
144
|
+
submitting a change.
|
|
145
|
+
|
|
146
|
+
JavaScript tests
|
|
147
|
+
................
|
|
148
|
+
|
|
149
|
+
The JavaScript tests for the HTML report are in tests/js. To run them in a
|
|
150
|
+
headless browser::
|
|
151
|
+
|
|
152
|
+
$ make test_js
|
|
153
|
+
|
|
154
|
+
You can also see them in a web browser by loading tests/js/index.html. These
|
|
155
|
+
tests are run in CI when the report JavaScript changes, but be sure to run them
|
|
156
|
+
yourself if you have changed any aspect of the HTML reports.
|
|
157
|
+
|
|
158
|
+
Coverage testing coverage.py
|
|
159
|
+
............................
|
|
160
|
+
|
|
161
|
+
Coverage.py can measure itself, but it's complicated. The process has been
|
|
162
|
+
packaged up to make it easier::
|
|
163
|
+
|
|
164
|
+
$ make metacov metahtml
|
|
165
|
+
|
|
166
|
+
Then look at htmlcov/index.html. Note that due to the recursive nature of
|
|
167
|
+
coverage.py measuring itself, there are some parts of the code that will never
|
|
168
|
+
appear as covered, even though they are executed.
|
|
169
|
+
|
|
170
|
+
.. _pytest test selectors: https://doc.pytest.org/en/stable/usage.html#specifying-which-tests-to-run
|
|
171
|
+
.. _set_env.py: https://nedbatchelder.com/blog/201907/set_envpy.html
|
|
172
|
+
.. _sys.monitoring: https://docs.python.org/3/library/sys.monitoring.html
|
|
173
|
+
.. _tox: https://tox.readthedocs.io/
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
Quality checks
|
|
177
|
+
--------------
|
|
178
|
+
|
|
179
|
+
Keep the coverage.py source as clean as possible. We use pylint and mypy to
|
|
180
|
+
catch possible problems. All of the quality checks can be run together::
|
|
181
|
+
|
|
182
|
+
$ make quality
|
|
183
|
+
|
|
184
|
+
The source is pylint-clean, even if it's because there are pragmas quieting
|
|
185
|
+
some warnings. Try to keep it that way, but don't let pylint warnings
|
|
186
|
+
keep you from sending change. We can clean them up for you if you ask.
|
|
187
|
+
|
|
188
|
+
Lines should be kept to a 100-character maximum length. We recommend an
|
|
189
|
+
`editorconfig.org`_ plugin for your editor of choice, which will also help with
|
|
190
|
+
indentation, line endings and so on. Source files are formatted with `ruff`_.
|
|
191
|
+
|
|
192
|
+
We use `pre-commit`_ to run checks and formatting when making commits, you
|
|
193
|
+
should also.
|
|
194
|
+
|
|
195
|
+
Other style questions are best answered by looking at the existing code.
|
|
196
|
+
Formatting of docstrings, comments, long lines, and so on, should match the
|
|
197
|
+
code that already exists.
|
|
198
|
+
|
|
199
|
+
.. _editorconfig.org: http://editorconfig.org
|
|
200
|
+
.. _ruff: https://pypi.org/project/ruff/
|
|
201
|
+
.. _pre-commit: https://pre-commit.com/
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
Documentation
|
|
205
|
+
-------------
|
|
206
|
+
|
|
207
|
+
User-visible changes should include updates to the documentation. Stay focused
|
|
208
|
+
on the users' perspective.
|
|
209
|
+
|
|
210
|
+
Changelog
|
|
211
|
+
.........
|
|
212
|
+
|
|
213
|
+
Changes to the public experience are described in CHANGES.rst, but don't edit
|
|
214
|
+
that file directly. Use `scriv`_ to create a changelog fragment as part of
|
|
215
|
+
your pull request::
|
|
216
|
+
|
|
217
|
+
$ scriv create
|
|
218
|
+
|
|
219
|
+
Describe your change briefly, using syntax and tone similar to entries in
|
|
220
|
+
CHANGES.rst. Provide links to the issue and pull request.
|
|
221
|
+
|
|
222
|
+
The fragment will be collected into CHANGES.rst when a release is made.
|
|
223
|
+
|
|
224
|
+
Cog
|
|
225
|
+
...
|
|
226
|
+
|
|
227
|
+
Parts of the documentation and GitHub actions are kept up-to-date with `cog`_.
|
|
228
|
+
There are checks to make sure that files are correct and not being incorrectly
|
|
229
|
+
edited.
|
|
230
|
+
|
|
231
|
+
If a check fails, it will show you what command to run to update the files.
|
|
232
|
+
If you edit parts of a file that should be generated, you will see a message
|
|
233
|
+
like::
|
|
234
|
+
|
|
235
|
+
Output has been edited! Delete old checksum to unprotect.
|
|
236
|
+
|
|
237
|
+
Probably you should revert the edits and run the command to generate the
|
|
238
|
+
output. The top of the file you edited will have instructions.
|
|
239
|
+
|
|
240
|
+
.. _scriv: https://scriv.readthedocs.io
|
|
241
|
+
.. _cog: https://cog.readthedocs.io
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
Your pull request
|
|
245
|
+
-----------------
|
|
246
|
+
|
|
247
|
+
When you are ready to contribute a change, make a GitHub pull request. Be
|
|
248
|
+
concise in your description of the change.
|
|
249
|
+
|
|
250
|
+
Be clear about how you want to stay involved in finishing it and merging it: do
|
|
251
|
+
you want to cross all the t's and dot the i's, or do you want us to make the
|
|
252
|
+
final changes?
|
|
253
|
+
|
|
254
|
+
Always include tests, documentation, and a changelog fragment as needed.
|
|
255
|
+
|
|
256
|
+
`GitHub actions`_ will run all of the Python tests and quality checks on your
|
|
257
|
+
changes. If any fail, either fix them or ask for help.
|
|
258
|
+
|
|
259
|
+
CI includes checks for things like missing coverage. There should be messages
|
|
260
|
+
explaining what went wrong.
|
|
261
|
+
|
|
262
|
+
.. _GitHub actions: https://github.com/coveragepy/coveragepy/actions
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
Dependencies
|
|
266
|
+
------------
|
|
267
|
+
|
|
268
|
+
Coverage.py has no runtime dependencies.
|
|
269
|
+
|
|
270
|
+
It has many development dependencies. These are specified generically in the
|
|
271
|
+
``requirements/*.in`` files. The .in files should have no versions specified
|
|
272
|
+
in them. The specific versions to use are pinned in ``requirements/*.txt``
|
|
273
|
+
files. These are created by running ``make upgrade``.
|
|
274
|
+
|
|
275
|
+
It's important to use Python 3.11 to run ``make upgrade`` so that the pinned
|
|
276
|
+
versions will work on all of the Python versions currently supported by
|
|
277
|
+
coverage.py.
|
|
278
|
+
|
|
279
|
+
If for some reason we need to constrain a version of a dependency, the
|
|
280
|
+
constraint should be specified in the ``requirements/pins.txt`` file, with a
|
|
281
|
+
detailed reason for the pin.
|
|
@@ -52,11 +52,12 @@ jobs:
|
|
|
52
52
|
- "*.py"
|
|
53
53
|
- "coverage/**.py"
|
|
54
54
|
- "tests/**.py"
|
|
55
|
+
- "tools/igor.py"
|
|
55
56
|
- "**.h"
|
|
56
57
|
- "**.c"
|
|
57
58
|
- ".github/workflows/coverage.yml"
|
|
58
59
|
- "tox.ini"
|
|
59
|
-
- "metacov.ini"
|
|
60
|
+
- "tools/metacov.ini"
|
|
60
61
|
- "requirements/*.txt"
|
|
61
62
|
- "tests/gold/**"
|
|
62
63
|
|
|
@@ -94,6 +95,8 @@ jobs:
|
|
|
94
95
|
- "3.14t"
|
|
95
96
|
- "3.15"
|
|
96
97
|
- "3.15t"
|
|
98
|
+
- "3.16"
|
|
99
|
+
- "3.16t"
|
|
97
100
|
- "pypy-3.11"
|
|
98
101
|
exclude:
|
|
99
102
|
# Mac PyPy always takes the longest, and doesn't add anything.
|
|
@@ -149,7 +152,7 @@ jobs:
|
|
|
149
152
|
|
|
150
153
|
- name: "Combine data"
|
|
151
154
|
env:
|
|
152
|
-
COVERAGE_RCFILE: "metacov.ini"
|
|
155
|
+
COVERAGE_RCFILE: "tools/metacov.ini"
|
|
153
156
|
run: |
|
|
154
157
|
python -m coverage combine
|
|
155
158
|
mv .metacov ".metacov.$MATRIX_ID"
|
|
@@ -168,7 +171,7 @@ jobs:
|
|
|
168
171
|
outputs:
|
|
169
172
|
total: ${{ steps.total.outputs.total }}
|
|
170
173
|
env:
|
|
171
|
-
COVERAGE_RCFILE: "metacov.ini"
|
|
174
|
+
COVERAGE_RCFILE: "tools/metacov.ini"
|
|
172
175
|
|
|
173
176
|
steps:
|
|
174
177
|
- name: "Check out the repo"
|
|
@@ -196,7 +199,7 @@ jobs:
|
|
|
196
199
|
set -xe
|
|
197
200
|
python -m pip install -e .
|
|
198
201
|
python -m pip install -r requirements/pytest.txt
|
|
199
|
-
python igor.py zip_mods
|
|
202
|
+
python tools/igor.py zip_mods
|
|
200
203
|
|
|
201
204
|
- name: "Download coverage data"
|
|
202
205
|
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
@@ -210,7 +213,7 @@ jobs:
|
|
|
210
213
|
COVERAGE_CONTEXT: "yes"
|
|
211
214
|
run: |
|
|
212
215
|
set -xe
|
|
213
|
-
python igor.py combine_html
|
|
216
|
+
python tools/igor.py combine_html
|
|
214
217
|
|
|
215
218
|
- name: "Upload HTML report"
|
|
216
219
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
@@ -116,6 +116,10 @@ jobs:
|
|
|
116
116
|
# if the_arch == "aarch64":
|
|
117
117
|
# # https://github.com/pypa/cibuildwheel/issues/2257
|
|
118
118
|
# them["os-version"] = "22.04-arm"
|
|
119
|
+
# if the_arch == "i686":
|
|
120
|
+
# # Can't resolve DNS in the container on ubuntu 26.04.
|
|
121
|
+
# # https://github.com/actions/runner-images/issues/15312
|
|
122
|
+
# them["os-version"] = "24.04"
|
|
119
123
|
# if the_arch == "ppc64le":
|
|
120
124
|
# them["os-version"] = "24.04-ppc64le"
|
|
121
125
|
# print(f"- {json.dumps(them)}")
|
|
@@ -138,11 +142,11 @@ jobs:
|
|
|
138
142
|
- {"os": "ubuntu", "py": "cp313", "arch": "x86_64", "cipy": "3.11"}
|
|
139
143
|
- {"os": "ubuntu", "py": "cp314", "arch": "x86_64", "cipy": "3.11"}
|
|
140
144
|
- {"os": "ubuntu", "py": "cp315", "arch": "x86_64", "cipy": "3.11"}
|
|
141
|
-
- {"os": "ubuntu", "py": "cp311", "arch": "i686", "cipy": "3.11"}
|
|
142
|
-
- {"os": "ubuntu", "py": "cp312", "arch": "i686", "cipy": "3.11"}
|
|
143
|
-
- {"os": "ubuntu", "py": "cp313", "arch": "i686", "cipy": "3.11"}
|
|
144
|
-
- {"os": "ubuntu", "py": "cp314", "arch": "i686", "cipy": "3.11"}
|
|
145
|
-
- {"os": "ubuntu", "py": "cp315", "arch": "i686", "cipy": "3.11"}
|
|
145
|
+
- {"os": "ubuntu", "py": "cp311", "arch": "i686", "cipy": "3.11", "os-version": "24.04"}
|
|
146
|
+
- {"os": "ubuntu", "py": "cp312", "arch": "i686", "cipy": "3.11", "os-version": "24.04"}
|
|
147
|
+
- {"os": "ubuntu", "py": "cp313", "arch": "i686", "cipy": "3.11", "os-version": "24.04"}
|
|
148
|
+
- {"os": "ubuntu", "py": "cp314", "arch": "i686", "cipy": "3.11", "os-version": "24.04"}
|
|
149
|
+
- {"os": "ubuntu", "py": "cp315", "arch": "i686", "cipy": "3.11", "os-version": "24.04"}
|
|
146
150
|
- {"os": "ubuntu", "py": "cp311", "arch": "aarch64", "cipy": "3.11", "os-version": "22.04-arm"}
|
|
147
151
|
- {"os": "ubuntu", "py": "cp312", "arch": "aarch64", "cipy": "3.11", "os-version": "22.04-arm"}
|
|
148
152
|
- {"os": "ubuntu", "py": "cp313", "arch": "aarch64", "cipy": "3.11", "os-version": "22.04-arm"}
|
|
@@ -195,7 +199,7 @@ jobs:
|
|
|
195
199
|
- {"os": "macos", "py": "cp313", "arch": "arm64_iphonesimulator", "cipy": "3.11", "platform": "ios", "os-version": "26"}
|
|
196
200
|
- {"os": "macos", "py": "cp314", "arch": "arm64_iphonesimulator", "cipy": "3.11", "platform": "ios", "os-version": "26"}
|
|
197
201
|
- {"os": "macos", "py": "cp315", "arch": "arm64_iphonesimulator", "cipy": "3.11", "platform": "ios", "os-version": "26"}
|
|
198
|
-
# [[[end]]] (sum:
|
|
202
|
+
# [[[end]]] (sum: LvtBpYV0Q0)
|
|
199
203
|
# ^^^^^^^^^^^^^^^
|
|
200
204
|
# If a check fails and points to this checksum line, it means you edited
|
|
201
205
|
# the matrix directly instead of editing the Python code in the comment
|
|
@@ -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@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
189
189
|
with:
|
|
190
190
|
enable-cache: false
|
|
191
191
|
|
|
@@ -52,6 +52,7 @@ jobs:
|
|
|
52
52
|
- "*.py"
|
|
53
53
|
- "coverage/**.py"
|
|
54
54
|
- "tests/**.py"
|
|
55
|
+
- "tools/igor.py"
|
|
55
56
|
- "**.h"
|
|
56
57
|
- "**.c"
|
|
57
58
|
- ".github/workflows/testsuite.yml"
|
|
@@ -101,6 +102,8 @@ jobs:
|
|
|
101
102
|
- "3.14t"
|
|
102
103
|
- "3.15"
|
|
103
104
|
- "3.15t"
|
|
105
|
+
- "3.16"
|
|
106
|
+
- "3.16t"
|
|
104
107
|
- "pypy-3.11"
|
|
105
108
|
|
|
106
109
|
#
|
|
@@ -20,7 +20,49 @@ upgrading your version of coverage.py.
|
|
|
20
20
|
.. Version 9.8.1 — 2027-07-27
|
|
21
21
|
.. --------------------------
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Unreleased
|
|
24
|
+
----------
|
|
25
|
+
|
|
26
|
+
See ``news/*.rst`` files for upcoming changelog fragments.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
.. scriv-insert-here
|
|
30
|
+
|
|
31
|
+
.. _changelog-7.17.3:
|
|
32
|
+
|
|
33
|
+
Version 7.17.3 — 2026-11-11
|
|
34
|
+
---------------------------
|
|
35
|
+
|
|
36
|
+
- Fix: using ``patch = fork``, a child process wasn't measured unless ``patch =
|
|
37
|
+
subprocess`` was also used, as described in `issue 2340`_. This is now fixed
|
|
38
|
+
in `pull 2342`_.
|
|
39
|
+
|
|
40
|
+
- Fix: the JSON report keys functions and classes by name, but names can
|
|
41
|
+
repeat, for example a property getter and setter. Only the last one was
|
|
42
|
+
kept, so the others were missing from the report. Now repeated names get a
|
|
43
|
+
``@<line number>`` suffix, as in the LCOV report. `pull 2353`_.
|
|
44
|
+
|
|
45
|
+
- Fix: when combining parallel data files, a file that disappears after it
|
|
46
|
+
has been listed (for example, when the process writing it is still finishing
|
|
47
|
+
its write) is now reported with a warning, instead of stopping the combine
|
|
48
|
+
with a ``DataError``. This was a regression in 7.17.1. Closes `issue
|
|
49
|
+
2364`_.
|
|
50
|
+
|
|
51
|
+
- Fix: with ``patch = subprocess`` on Python 3.13, a measured subprocess that
|
|
52
|
+
was stopped with SIGINT would exit with status 1 instead of dying from the
|
|
53
|
+
signal. This was a regression in 7.17.1, and is now fixed, closing `issue
|
|
54
|
+
2362`_.
|
|
55
|
+
|
|
56
|
+
- Performance: on Python 3.13 and later, using the C tracer should result in
|
|
57
|
+
test suites running about 8% to 12% faster (`pull 2371`_).
|
|
58
|
+
|
|
59
|
+
.. _issue 2340: https://github.com/coveragepy/coveragepy/issues/2340
|
|
60
|
+
.. _pull 2342: https://github.com/coveragepy/coveragepy/pull/2342
|
|
61
|
+
.. _pull 2353: https://github.com/coveragepy/coveragepy/pull/2353
|
|
62
|
+
.. _issue 2364: https://github.com/coveragepy/coveragepy/issues/2364
|
|
63
|
+
.. _issue 2362: https://github.com/coveragepy/coveragepy/issues/2362
|
|
64
|
+
.. _pull 2371: https://github.com/coveragepy/coveragepy/pull/2371
|
|
65
|
+
|
|
24
66
|
|
|
25
67
|
.. _changes_7-17-2:
|
|
26
68
|
|
|
@@ -2849,7 +2891,7 @@ Version 5.3 — 2020-09-13
|
|
|
2849
2891
|
.. _issue 1011: https://github.com/coveragepy/coveragepy/issues/1011
|
|
2850
2892
|
|
|
2851
2893
|
|
|
2852
|
-
..
|
|
2894
|
+
.. scriv-end-here
|
|
2853
2895
|
|
|
2854
2896
|
Older changes
|
|
2855
2897
|
-------------
|
|
@@ -23,14 +23,12 @@ include Makefile
|
|
|
23
23
|
include NOTICE.txt
|
|
24
24
|
include README.rst
|
|
25
25
|
include __main__.py
|
|
26
|
-
include howto.txt
|
|
27
|
-
include igor.py
|
|
28
|
-
include metacov.ini
|
|
29
26
|
include setup.py
|
|
30
27
|
include tox.ini
|
|
31
28
|
|
|
32
|
-
recursive-include ci *
|
|
33
29
|
recursive-include lab *
|
|
30
|
+
recursive-include news *
|
|
31
|
+
recursive-include tools *
|
|
34
32
|
recursive-include .github *
|
|
35
33
|
|
|
36
34
|
recursive-include coverage *.pyi
|
|
@@ -39,6 +37,7 @@ recursive-include coverage/ctracer *.c *.h
|
|
|
39
37
|
recursive-include doc *.py *.in *.rst *.txt *.png
|
|
40
38
|
recursive-include doc/_static *
|
|
41
39
|
prune doc/_build
|
|
40
|
+
prune doc/_extra
|
|
42
41
|
prune doc/_spell
|
|
43
42
|
|
|
44
43
|
recursive-include requirements *.in *.txt
|