1- Collecting Metrics
1+ Collecting metrics
22==================
33
4- PTB allows you to collect various metrics on the quality of your project
4+ The PTB allows you to collect various metrics on the quality of your project
55regarding Coverage, Security, and Static Code Analysis.
66
7- For each metric, there is a dedicated nox task , generating one or multiple
7+ For each metric, there is a dedicated nox session , generating one or multiple
88files and based on a selected external Python tool.
99
10- +-----------------------------+-----------------------------+--------------+
11- | Nox Task | Generated Files | Based on |
12- +=============================+=============================+==============+
13- | ``lint:code `` | ``lint.txt ``, ``lint.json `` | ``pylint `` |
14- +-----------------------------+-----------------------------+--------------+
15- | ``lint:security `` | ``.security.json `` | ``bandit `` |
16- +-----------------------------+-----------------------------+--------------+
17- | ``test:unit -- --coverage `` | ``.coverage `` | ``coverage `` |
18- +-----------------------------+-----------------------------+--------------+
19-
20- The metrics are computed for each point in your build matrix, e.g. for each
10+ +------------------------------------+-----------------------------+--------------+
11+ | Nox session | Generated files | Based on |
12+ +====================================+=============================+==============+
13+ | ``lint:code `` | ``lint.txt ``, ``lint.json `` | ``pylint `` |
14+ +------------------------------------+-----------------------------+--------------+
15+ | ``lint:security `` | ``.security.json `` | ``bandit `` |
16+ +------------------------------------+-----------------------------+--------------+
17+ | ``test:unit -- --coverage `` | ``.coverage `` | ``coverage `` |
18+ +------------------------------------+-----------------------------+--------------+
19+ | ``test:integration -- --coverage `` | ``.coverage `` | ``coverage `` |
20+ +------------------------------------+-----------------------------+--------------+
21+
22+ These metrics are computed for each point in your build matrix, e.g. for each
2123Python version defined in file ``noxconfig.py ``:
2224
2325.. code-block :: python
@@ -31,5 +33,5 @@ The GitHub workflows of your project can:
3133* Use a build matrix, e.g. using different Python versions as shown above
3234* Define multiple test sessions, e.g. for distinguishing fast vs. slow or expensive tests.
3335
34- PTB combines the coverage data of all test sessions but using only the Python
36+ The PTB combines the coverage data of all test sessions of the Python
3537version named first in attribute ``python_versions `` of class ``Config ``.
0 commit comments