Skip to content

Commit 73a2b9b

Browse files
Fix the linting issues
1 parent abde319 commit 73a2b9b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGES.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Version 7.10.7 — 2025-09-21
4545
LCOV reports could take far too long due to some quadratic behavior when
4646
creating the function and class index pages. This is now fixed, closing
4747
`issue 2048`_. Thanks to Daniel Diniz for help diagnosing the problem.
48-
- New feature: coverage.py now supports :file:`.coveragerc.toml` configuration files.
49-
These files use TOML syntax and take priority over :file:`pyproject.toml` but lower
50-
priority than :file:`.coveragerc` files.
48+
- New feature: coverage.py now supports :file:`.coveragerc.toml` configuration
49+
files. These files use TOML syntax and take priority over :file:`pyproject.toml`
50+
but lower priority than :file:`.coveragerc` files.
5151

5252
- Most warnings and a few errors now have links to a page in the docs
5353
explaining the specific message. Closes `issue 1921`_.

doc/config.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ environment variable.
3939

4040
If ``.coveragerc`` doesn't exist and another file hasn't been specified, then
4141
coverage.py will look for settings in other common configuration files, in this
42-
order: :file:`.coveragerc.toml`, :file:`setup.cfg`, :file:`tox.ini`, or :file:`pyproject.toml`. The first file found with
43-
coverage.py settings will be used and other files won't be consulted.
42+
order: :file:`.coveragerc.toml`, :file:`setup.cfg`, :file:`tox.ini`, or
43+
:file:`pyproject.toml`. The first file found with coverage.py settings will be
44+
used and other files won't be consulted.
4445

4546
Coverage.py will read from "pyproject.toml" if TOML support is available,
4647
either because you are running on Python 3.11 or later, or because you

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ def test_no_toml_installed_pyproject_no_coverage(self) -> None:
10171017
assert cov.config.data_file == ".coverage"
10181018

10191019
@pytest.mark.parametrize("filename", ["pyproject.toml", ".coveragerc.toml"])
1020-
def test_exceptions_from_missing_toml_things(self, filename) -> None:
1020+
def test_exceptions_from_missing_toml_things(self, filename: str) -> None:
10211021
self.make_file(
10221022
filename,
10231023
"""\

0 commit comments

Comments
 (0)