Skip to content

Commit 2b84823

Browse files
committedMay 11, 2023
docs: minor improvements to the migrating page
1 parent ee17e7c commit 2b84823

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed
 

‎doc/migrating.rst

+15-10
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,31 @@
77
Migrating between versions
88
==========================
99

10-
New major versions of coverage.py might require you to adjust your settings,
11-
options, or other aspects of your use. This page details those changes.
10+
New versions of coverage.py or Python might require you to adjust your
11+
settings, options, or other aspects how you use coverage.py. This page details
12+
those changes.
1213

13-
.. _migrating_6x_7x:
14+
.. _migrating_cov7:
1415

15-
Migrating from 6.x to 7.x
16-
-------------------------
16+
Migrating to coverage.py 7.x
17+
----------------------------
1718

18-
- The way that wildcards when specifying file paths work in certain cases has changed in 7.x:
19+
Consider these changes when migrating to coverage.py 7.x:
20+
21+
- The way that wildcards when specifying file paths work in certain cases has
22+
changed in 7.x:
1923

2024
- Previously, ``*`` would incorrectly match directory separators, making
2125
precise matching difficult. Patterns such as ``*tests/*``
2226
will need to be changed to ``*/tests/*``.
2327

24-
- ``**`` now matches any number of nested directories. If you wish to retain the behavior of
25-
``**/tests/*`` in previous versions then ``*/**/tests/*`` can be used instead.
28+
- ``**`` now matches any number of nested directories. If you wish to retain
29+
the behavior of ``**/tests/*`` in previous versions then ``*/**/tests/*``
30+
can be used instead.
2631

2732
- When remapping file paths with ``[paths]``, a path will be remapped only if
28-
the resulting path exists. Ensure that remapped ``[paths]`` exist when upgrading
29-
as this is now being enforced.
33+
the resulting path exists. Ensure that remapped ``[paths]`` exist when
34+
upgrading as this is now being enforced.
3035

3136
- The :ref:`config_report_exclude_also` setting is new in 7.2.0. It adds
3237
exclusion regexes while keeping the default built-in set. It's better than

0 commit comments

Comments
 (0)
Please sign in to comment.