Skip to content

Commit 7b1628b

Browse files
Jaap Roesnedbat
Jaap Roes
authored andcommitted
Add pyproject.toml configuration example
Closes #77
1 parent 5d499a6 commit 7b1628b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ Configuration
7272
~~~~~~~~~~~~~
7373

7474
The Django template plugin uses some existing settings from your
75-
.coveragerc file. The ``source=``, ``include=``, and ``omit=`` options
75+
``.coveragerc`` file. The ``source=``, ``include=``, and ``omit=`` options
7676
control what template files are included in the report.
7777

7878
The plugin can find unused template and include them in your results. By
7979
default, it will look for files in your templates directory with an extension
80-
of .html, .htm, or .txt. You can configure it to look for a different set of
80+
of ``.html``, ``.htm``, or ``.txt``. You can configure it to look for a different set of
8181
extensions if you like::
8282

8383
[run]
@@ -86,6 +86,15 @@ extensions if you like::
8686
[django_coverage_plugin]
8787
template_extensions = html, txt, tex, email
8888

89+
If you use ``pyproject.toml`` for tool configuration use::
90+
91+
[tool.coverage.run]
92+
plugins = [
93+
'django_coverage_plugin',
94+
]
95+
96+
[tool.coverage.django_coverage_plugin]
97+
template_extensions = 'html, txt, tex, email'
8998

9099
Caveats
91100
~~~~~~~

0 commit comments

Comments
 (0)