Skip to content

Commit 861f5e9

Browse files
committed
Update collecting metrics a little; more to come in another PR
1 parent e739c6a commit 861f5e9

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

doc/changes/unreleased.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Documentation
44

5-
* #504: Removed Issue Tracking & Style Guides
5+
* #504: Removed Issue Tracking & Style Guides, moved & updated "Create a release", moved & updated "Collecting metrics"
66

77
## Feature
88

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
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
55
regarding 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
88
files 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
2123
Python 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
3537
version named first in attribute ``python_versions`` of class ``Config``.

doc/user_guide/features/create_a_release.rst renamed to doc/user_guide/features/creating_a_release.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Create a release
2-
================
1+
Creating a release
2+
==================
33

44
Preparing a release
55
+++++++++++++++++++

doc/user_guide/features/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Features
66
.. toctree::
77
:maxdepth: 2
88

9-
create_a_release
109
collecting_metrics
10+
creating_a_release
1111

1212
Uniform Project Layout
1313
----------------------

0 commit comments

Comments
 (0)