File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,14 @@ Unreleased
45
45
plugins, but now it does, closing `issue 834 `_.
46
46
47
47
48
+ - Added TOML configuration support, including pyproject.toml `issue 664 `_.
49
+
48
50
.. _issue 720 : https://github.com/nedbat/coveragepy/issues/720
49
51
.. _issue 822 : https://github.com/nedbat/coveragepy/issues/822
50
52
.. _issue 834 : https://github.com/nedbat/coveragepy/issues/834
51
53
.. _issue 829 : https://github.com/nedbat/coveragepy/issues/829
52
54
.. _issue 846 : https://github.com/nedbat/coveragepy/issues/846
55
+ .. _issue 664 : https://github.com/nedbat/coveragepy/issues/664
53
56
54
57
55
58
.. _changes_50a6 :
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ class Opts(object):
146
146
'' , '--rcfile' , action = 'store' ,
147
147
help = (
148
148
"Specify configuration file. "
149
- "By default '.coveragerc', 'setup.cfg' and 'tox.ini' are tried. "
150
- "[env: COVERAGE_RCFILE]"
149
+ "By default '.coveragerc', 'pyproject.toml', 'setup.cfg' and "
150
+ "'tox.ini' are tried. [env: COVERAGE_RCFILE]"
151
151
),
152
152
)
153
153
source = optparse .make_option (
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ Coverage.py will read settings from other usual configuration files if no other
29
29
configuration file is used. It will automatically read from "setup.cfg" or
30
30
"tox.ini" if they exist. In this case, the section names have "coverage:"
31
31
prefixed, so the ``[run] `` options described below will be found in the
32
- ``[coverage:run] `` section of the file.
32
+ ``[coverage:run] `` section of the file. If Coverage.py is installed with the
33
+ ``toml `` extra (``pip install coverage[toml] ``), it will automatically read
34
+ from "pyproject.toml". Configuration must be within the `[tool.coverage] `
35
+ section, e.g. ``[tool.coverage.run]`.
33
36
34
37
35
38
Syntax
You can’t perform that action at this time.
0 commit comments