File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ Configuration
7272~~~~~~~~~~~~~
7373
7474The 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
7676control what template files are included in the report.
7777
7878The plugin can find unused template and include them in your results. By
7979default, 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
8181extensions 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
9099Caveats
91100~~~~~~~
You can’t perform that action at this time.
0 commit comments