Skip to content

build(deps): bump coverage from 7.12.0 to 7.18.0 - #26

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/coverage-7.18.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/coverage-7.18.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 3, 2026

Copy link
Copy Markdown

Bumps coverage from 7.12.0 to 7.18.0.

Release notes

Sourced from coverage's releases.

7.18.0

Version 7.18.0 — 2026-11-29

  • Feature: [run] source (and --source) entries can now be glob patterns, for example packages/*/src. A pattern is expanded to the directories it matches when measurement starts, so monorepo packages are measured, and their un-executed files reported, without listing each one. A pattern that matches nothing issues a warning. Closes issue 2400.
  • Feature: two new methods for plug-ins to use in their test suites, as requested in issue 920. The Coverage.get_plugins() method returns the currently registered plug-ins, including disabled ones. The CoveragePlugin.is_enabled() method reports their current enabled state.
  • Fix: lcov output now marks functions as starting on the first non-signature line, fixing errors about “inconsistent” tracefiles during combination. Closed issue 2394.
  • Fix: XML and LCOV reports now honor the report context filter when calculating coverage.
  • Fix: when two source roots each contained a package with the same name, the XML report kept only one of the same-named files while still counting the lines of both, so lines-valid disagreed with the <line> elements in the document. Closes issue 1291.
  • Fix: with [html] show_contexts enabled, re-running the HTML report kept pages whose lines were unchanged, even when the contexts were different, so they showed stale contexts. Closes issue 2372.
  • Fix: with the C tracer and branch coverage, an error while starting to trace a function call (for example, RecursionError from should_trace when a new file is entered near the recursion limit) left the previous call’s file in place. If the exception was caught, the function’s return recorded arcs in that other file, which could report lines as executed that never ran. Now a call that fails to start records nothing, closing issue 2385.
  • Fix: missing branch explanations for exits from a finally clause could incorrectly say a condition was always true, even when it was false while an exception or return was pending. These explanations now describe the missing jump without attributing it solely to the condition. Fixes issue 867.
  • Fix: if a directory for the data file or a report couldn’t be created, the error was a raw traceback. Now the error message names the file that was being written.
  • Perf: line coverage reports are faster when many measurement contexts cover the same file.

➡️  PyPI page: coverage 7.18.0. :arrow_right:  To install: python3 -m pip install coverage==7.18.0

7.17.5

Version 7.17.5 — 2026-11-23

  • Fix: the reporting commands (report, html, xml, json, lcov, and annotate) used to put the current directory first on sys.path, to let plugins import local files. Now the current directory is added only if plugins are configured, and at the end of sys.path, so local files can’t replace other modules.
  • Fix: local plugins interfered with erase and combine as reported in issue 1726 and issue 1979. This is now fixed (pull 2253).
  • Fix: with the sysmon core on Python 3.14, starting and stopping a second Coverage object stopped the first one from measuring code it had already run. Closes issue 2302.
  • Fix: combining data files failed with “Conflicting file tracer name” when one data file only listed a file without measuring it (as unexecuted source files are) and another measured the same file with a plugin. This happened in pytest-cov’s distributed testing. Now a file with no measurements doesn’t conflict with a plugin’s measurements. Fixes issue 2358.
  • Fix: saving data while another thread started measuring a new file handled by a plugin could fail with “dictionary changed size during iteration”. Fixed in pull 2382.
  • Fix: a keyboard interrupt at just the wrong moment could leave a lock locked and prevent saving data, as reported in issue 2383. This is now fixed (pull 2396).

➡️  PyPI page: coverage 7.17.5. :arrow_right:  To install: python3 -m pip install coverage==7.17.5

7.17.4

Version 7.17.4 — 2026-11-20

  • Fix: since 7.13.1, a parallel data file could be named with the hash of different data than it held, for example when nbval records a notebook’s coverage into pytest-cov’s data file. Combining could then skip it as a duplicate and lose its data. Now the hash comes from the data in the file when it is saved. Fixes issue 2370 with pull 2387.
  • Fix: lines or arcs recorded by other threads while data was being flushed (for example during Coverage.get_data(), Coverage.save(), or dynamic context switches) could be lost. This is now fixed, closing issue 2384.
  • Fix: on Python 3.14 with the pure-Python tracer (COVERAGE_CORE=pytrace) and branch measurement, a function that returned right after an except* handler recorded an arc with no line number. Reporting on the data then failed with a TypeError. Now that arc is not recorded. pull 2403.
  • Fix: in the JSON report with show_contexts, each function and class had the contexts for every line in the file. Now they only have the contexts for their own lines. Closes issue 2374.
  • The first entry in a [paths] list is the result path, and must be an actual file path. If it contained wildcards, the rule could never be used and was silently ignored. It is now reported as a configuration error. Closes issue 1531.
  • Fix: a configuration file (.coveragerc, setup.cfg, tox.ini or pyproject.toml) saved with a UTF-8 byte order mark couldn’t be read. Now a leading BOM is ignored. pull 2388.

➡️  PyPI page: coverage 7.17.4. :arrow_right:  To install: python3 -m pip install coverage==7.17.4

7.17.3

Version 7.17.3 — 2026-11-11

  • Fix: using patch = fork, a child process wasn’t measured unless patch = subprocess was also used, as described in issue 2340. This is now fixed in pull 2342.
  • Fix: the JSON report keys functions and classes by name, but names can repeat, for example a property getter and setter. Only the last one was kept, so the others were missing from the report. Now repeated names get a @<line number> suffix, as in the LCOV report. pull 2353.
  • Fix: when combining parallel data files, a file that disappears after it has been listed (for example, when the process writing it is still finishing its write) is now reported with a warning, instead of stopping the combine with a DataError. This was a regression in 7.17.1. Closes issue 2364.
  • Fix: with patch = subprocess on Python 3.13, a measured subprocess that was stopped with SIGINT would exit with status 1 instead of dying from the signal. This was a regression in 7.17.1, and is now fixed, closing issue 2362.

... (truncated)

Changelog

Sourced from coverage's changelog.

Version 7.18.0 — 2026-11-29

  • Feature: [run] source (and --source) entries can now be glob patterns, for example packages/*/src. A pattern is expanded to the directories it matches when measurement starts, so monorepo packages are measured, and their un-executed files reported, without listing each one. A pattern that matches nothing issues a warning. Closes issue 2400_.

  • Feature: two new methods for plug-ins to use in their test suites, as requested in issue 920_. The :meth:.Coverage.get_plugins method returns the currently registered plug-ins, including disabled ones. The :meth:.CoveragePlugin.is_enabled method reports their current enabled state.

  • Fix: lcov output now marks functions as starting on the first non-signature line, fixing errors about "inconsistent" tracefiles during combination. Closed issue 2394_.

  • Fix: XML and LCOV reports now honor the report context filter when calculating coverage.

  • Fix: when two source roots each contained a package with the same name, the XML report kept only one of the same-named files while still counting the lines of both, so lines-valid disagreed with the <line> elements in the document. Closes issue 1291_.

  • Fix: with [html] show_contexts enabled, re-running the HTML report kept pages whose lines were unchanged, even when the contexts were different, so they showed stale contexts. Closes issue 2372_.

  • Fix: with the C tracer and branch coverage, an error while starting to trace a function call (for example, RecursionError from should_trace when a new file is entered near the recursion limit) left the previous call's file in place. If the exception was caught, the function's return recorded arcs in that other file, which could report lines as executed that never ran. Now a call that fails to start records nothing, closing issue 2385_.

  • Fix: missing branch explanations for exits from a finally clause could incorrectly say a condition was always true, even when it was false while an exception or return was pending. These explanations now describe the missing jump without attributing it solely to the condition. Fixes issue 867_.

  • Fix: if a directory for the data file or a report couldn't be created, the error was a raw traceback. Now the error message names the file that was being written.

  • Performance: line coverage reports are faster when many measurement contexts cover the same file.

... (truncated)

Commits
  • 3fd8953 docs: sample HTML for 7.18.0
  • c9f8062 docs: prep for 7.18.0
  • cb613b4 ci: get ready for merge queue
  • 8d9c7c4 fix: a failed call in the C tracer records nothing #2385 (#2386)
  • 1531afa fix: honor context filters in XML and LCOV reports (#2418)
  • 6e3f185 fix(xml): keep same-named files from different source roots (closes #1291) (#...
  • bc83928 chore: bump the action-dependencies group with 2 updates (#2425)
  • dbb7446 fix: html report needs to notice when only contexts change #2372 (#2373)
  • 4365f41 docs: another issue closed
  • 49003e3 fix: make directory creation error messages more specific
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [coverage](https://github.com/coveragepy/coveragepy) from 7.12.0 to 7.18.0.
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.12.0...7.18.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants