Changelog
*Sourced from [coverage's changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst).*
> Version 5.0 --- 2019-12-14
> ==========================
>
> Nothing new beyond 5.0b2.
>
> Version 5.0b2 --- 2019-12-08
> ============================
>
> - An experimental `[run] relative_files` setting tells coverage to store relative file names in the data file. This makes it easier to run tests in one (or many) environments, and then report in another. It has not had much real-world testing, so it may change in incompatible ways in the future.
> - When constructing a coverage.Coverage object, data\_file can be specified as None to prevent writing any data file at all. In previous versions, an explicit data\_file=None argument would use the default of ".coverage". Fixes [issue 871](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/871).
> - Python files run with `-m` now have `__spec__` defined properly. This fixes [issue 745](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/745) (about not being able to run unittest tests that spawn subprocesses), and [issue 838](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/838), which described the problem directly.
> - The `[paths]` configuration section is now ordered. If you specify more than one list of patterns, the first one that matches will be used. Fixes [issue 649](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/649).
> - The .coverage.numbits.register\_sqlite\_functions function now also registers numbits\_to\_nums for use in SQLite queries. Thanks, Simon Willison.
> - Python 3.9a1 is supported.
> - Coverage.py has a mascot: Sleepy Snake <sleepy>.
>
> Version 5.0b1 --- 2019-11-11
> ============================
>
> - The HTML and textual reports now have a `--skip-empty` option that skips files with no statements, notably `__init__.py` files. Thanks, Reya B.
> - Configuration can now be read from [TOML](https://github.com/toml-lang/toml#readme) files. This requires installing coverage.py with the `[toml]` extra. The standard "pyproject.toml" file will be read automatically if no other configuration file is found, with settings in the `[tool.coverage.]` namespace. Thanks to Frazer McLean for implementation and persistence. Finishes [issue 664](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/664).
> - The `[run] note` setting has been deprecated. Using it will result in a warning, and the note will not be written to the data file. The corresponding .CoverageData methods have been removed.
> - The HTML report has been reimplemented (no more table around the source code). This allowed for a better presentation of the context information, hopefully resolving [issue 855](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/855).
> - Added sqlite3 module version information to `coverage debug sys` output.
> - Asking the HTML report to show contexts (`[html] show_contexts=True` or `coverage html --show-contexts`) will issue a warning if there were no contexts measured ([issue 851](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/851)).
>
> Version 5.0a8 --- 2019-10-02
> ============================
>
> - The .CoverageData API has changed how queries are limited to specific contexts. Now you use .CoverageData.set\_query\_context to set a single exact-match string, or .CoverageData.set\_query\_contexts to set a list of regular expressions to match contexts. This changes the command-line `--contexts` option to use regular expressions instead of filename-style wildcards.
>
> Version 5.0a7 --- 2019-09-21
> ============================
>
> - Data can now be "reported" in JSON format, for programmatic use, as requested in [issue 720](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/720). The new `coverage json` command writes raw and summarized data to a JSON file. Thanks, Matt Bachmann.
> - Dynamic contexts are now supported in the Python tracer, which is important for PyPy users. Closes [issue 846](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/846).
> - The compact line number representation introduced in 5.0a6 is called a "numbits." The coverage.numbits module provides functions for working with them.
> - The reporting methods used to permanently apply their arguments to the configuration of the Coverage object. Now they no longer do. The arguments affect the operation of the method, but do not persist.
> - A class named "test\_something" no longer confuses the `test_function` dynamic context setting. Fixes [issue 829](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/829).
> - Fixed an unusual tokenizing issue with backslashes in comments. Fixes [issue 822](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/822).
> - `debug=plugin` didn't properly support configuration or dynamic context plugins, but now it does, closing [issue 834](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/834).
>
> Version 5.0a6 --- 2019-07-16
> ============================
>
> - Reporting on contexts. Big thanks to Stephan Richter and Albertas Agejevas for the contribution.
> - The `--contexts` option is available on the `report` and `html` commands. It's a comma-separated list of shell-style wildcards, selecting the contexts to report on. Only contexts matching one of the wildcards will be included in the report.
> - The `--show-contexts` option for the `html` command adds context information to each covered line. Hovering over the "ctx" marker at the end of the line reveals a list of the contexts that covered the line.
> - Database changes:
> - Line numbers are now stored in a much more compact way. For each file and context, a single binary string is stored with a bit per line number. This greatly improves memory use, but makes ad-hoc use difficult.
> ... (truncated)
Commits
- [`bde3130`](https://github.com/nedbat/coveragepy/commit/bde31306de4ff2b6e4945683e5deb821c85984e8) Sample html report for 5.0
- [`b92a84c`](https://github.com/nedbat/coveragepy/commit/b92a84c8e5ec9eca615bd5a481b491f6865072a9) Prep for 5.0
- [`5379317`](https://github.com/nedbat/coveragepy/commit/5379317ad73694099b7876797695bc76bd9cdce5) Clarify the connection between subprocesses and --concurrency
- [`eebc1e9`](https://github.com/nedbat/coveragepy/commit/eebc1e9c93f97d03c481336607668e93b926c181) Forgot to mention Sleepy Snake in the changelog
- [`da8aace`](https://github.com/nedbat/coveragepy/commit/da8aaceb4da7c6ba958c6687bbef102800e72065) Better wording on the Sleepy page
- [`abbbd7d`](https://github.com/nedbat/coveragepy/commit/abbbd7dea7ebab412c2a73046436017ce18d277d) Bump version
- [`b68d147`](https://github.com/nedbat/coveragepy/commit/b68d14755fd8882483be1f02e4b96d33ed4c8636) Bumping version before readthedocs works better
- [`225dd7c`](https://github.com/nedbat/coveragepy/commit/225dd7cd63336b90c6e0b55fbe800a9241b3695b) Prep for 5.0b2
- [`aec4473`](https://github.com/nedbat/coveragepy/commit/aec4473cdcf2fdd4acde6a4314ba912f25cb0a55) Sleepy Snake
- [`b4a4626`](https://github.com/nedbat/coveragepy/commit/b4a46264fa0d029591c368ac95af692afc2bf471) A little easier to read in contributing.rst
- Additional commits viewable in [compare view](https://github.com/nedbat/coveragepy/compare/coverage-4.5.4...coverage-5.0)
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps coverage from 4.5.4 to 5.0.
Changelog
*Sourced from [coverage's changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst).* > Version 5.0 --- 2019-12-14 > ========================== > > Nothing new beyond 5.0b2. > > Version 5.0b2 --- 2019-12-08 > ============================ > > - An experimental `[run] relative_files` setting tells coverage to store relative file names in the data file. This makes it easier to run tests in one (or many) environments, and then report in another. It has not had much real-world testing, so it may change in incompatible ways in the future. > - When constructing a coverage.Coverage object, data\_file can be specified as None to prevent writing any data file at all. In previous versions, an explicit data\_file=None argument would use the default of ".coverage". Fixes [issue 871](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/871). > - Python files run with `-m` now have `__spec__` defined properly. This fixes [issue 745](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/745) (about not being able to run unittest tests that spawn subprocesses), and [issue 838](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/838), which described the problem directly. > - The `[paths]` configuration section is now ordered. If you specify more than one list of patterns, the first one that matches will be used. Fixes [issue 649](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/649). > - The .coverage.numbits.register\_sqlite\_functions function now also registers numbits\_to\_nums for use in SQLite queries. Thanks, Simon Willison. > - Python 3.9a1 is supported. > - Coverage.py has a mascot: Sleepy Snake <sleepy>. > > Version 5.0b1 --- 2019-11-11 > ============================ > > - The HTML and textual reports now have a `--skip-empty` option that skips files with no statements, notably `__init__.py` files. Thanks, Reya B. > - Configuration can now be read from [TOML](https://github.com/toml-lang/toml#readme) files. This requires installing coverage.py with the `[toml]` extra. The standard "pyproject.toml" file will be read automatically if no other configuration file is found, with settings in the `[tool.coverage.]` namespace. Thanks to Frazer McLean for implementation and persistence. Finishes [issue 664](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/664). > - The `[run] note` setting has been deprecated. Using it will result in a warning, and the note will not be written to the data file. The corresponding .CoverageData methods have been removed. > - The HTML report has been reimplemented (no more table around the source code). This allowed for a better presentation of the context information, hopefully resolving [issue 855](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/855). > - Added sqlite3 module version information to `coverage debug sys` output. > - Asking the HTML report to show contexts (`[html] show_contexts=True` or `coverage html --show-contexts`) will issue a warning if there were no contexts measured ([issue 851](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/851)). > > Version 5.0a8 --- 2019-10-02 > ============================ > > - The .CoverageData API has changed how queries are limited to specific contexts. Now you use .CoverageData.set\_query\_context to set a single exact-match string, or .CoverageData.set\_query\_contexts to set a list of regular expressions to match contexts. This changes the command-line `--contexts` option to use regular expressions instead of filename-style wildcards. > > Version 5.0a7 --- 2019-09-21 > ============================ > > - Data can now be "reported" in JSON format, for programmatic use, as requested in [issue 720](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/720). The new `coverage json` command writes raw and summarized data to a JSON file. Thanks, Matt Bachmann. > - Dynamic contexts are now supported in the Python tracer, which is important for PyPy users. Closes [issue 846](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/846). > - The compact line number representation introduced in 5.0a6 is called a "numbits." The coverage.numbits module provides functions for working with them. > - The reporting methods used to permanently apply their arguments to the configuration of the Coverage object. Now they no longer do. The arguments affect the operation of the method, but do not persist. > - A class named "test\_something" no longer confuses the `test_function` dynamic context setting. Fixes [issue 829](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/829). > - Fixed an unusual tokenizing issue with backslashes in comments. Fixes [issue 822](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/822). > - `debug=plugin` didn't properly support configuration or dynamic context plugins, but now it does, closing [issue 834](https://github-redirect.dependabot.com/nedbat/coveragepy/issues/834). > > Version 5.0a6 --- 2019-07-16 > ============================ > > - Reporting on contexts. Big thanks to Stephan Richter and Albertas Agejevas for the contribution. > - The `--contexts` option is available on the `report` and `html` commands. It's a comma-separated list of shell-style wildcards, selecting the contexts to report on. Only contexts matching one of the wildcards will be included in the report. > - The `--show-contexts` option for the `html` command adds context information to each covered line. Hovering over the "ctx" marker at the end of the line reveals a list of the contexts that covered the line. > - Database changes: > - Line numbers are now stored in a much more compact way. For each file and context, a single binary string is stored with a bit per line number. This greatly improves memory use, but makes ad-hoc use difficult. > ... (truncated)Commits
- [`bde3130`](https://github.com/nedbat/coveragepy/commit/bde31306de4ff2b6e4945683e5deb821c85984e8) Sample html report for 5.0 - [`b92a84c`](https://github.com/nedbat/coveragepy/commit/b92a84c8e5ec9eca615bd5a481b491f6865072a9) Prep for 5.0 - [`5379317`](https://github.com/nedbat/coveragepy/commit/5379317ad73694099b7876797695bc76bd9cdce5) Clarify the connection between subprocesses and --concurrency - [`eebc1e9`](https://github.com/nedbat/coveragepy/commit/eebc1e9c93f97d03c481336607668e93b926c181) Forgot to mention Sleepy Snake in the changelog - [`da8aace`](https://github.com/nedbat/coveragepy/commit/da8aaceb4da7c6ba958c6687bbef102800e72065) Better wording on the Sleepy page - [`abbbd7d`](https://github.com/nedbat/coveragepy/commit/abbbd7dea7ebab412c2a73046436017ce18d277d) Bump version - [`b68d147`](https://github.com/nedbat/coveragepy/commit/b68d14755fd8882483be1f02e4b96d33ed4c8636) Bumping version before readthedocs works better - [`225dd7c`](https://github.com/nedbat/coveragepy/commit/225dd7cd63336b90c6e0b55fbe800a9241b3695b) Prep for 5.0b2 - [`aec4473`](https://github.com/nedbat/coveragepy/commit/aec4473cdcf2fdd4acde6a4314ba912f25cb0a55) Sleepy Snake - [`b4a4626`](https://github.com/nedbat/coveragepy/commit/b4a46264fa0d029591c368ac95af692afc2bf471) A little easier to read in contributing.rst - Additional commits viewable in [compare view](https://github.com/nedbat/coveragepy/compare/coverage-4.5.4...coverage-5.0)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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)