Skip to content

Commit 1ac1846

Browse files
committed
feat: complete removal of [run] note
1 parent 2f0d484 commit 1ac1846

File tree

5 files changed

+2
-24
lines changed

5 files changed

+2
-24
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Unreleased
4343
- Fixed a mis-measurement of a strange use of wildcard alternatives in
4444
match/case statements, closing `issue 1421`_.
4545

46+
- The ``[run] note`` setting has been completely removed.
47+
4648
.. _pull 1479: https://github.com/nedbat/coveragepy/pull/1479
4749
.. _issue 1418: https://github.com/nedbat/coveragepy/issues/1418
4850
.. _issue 1421: https://github.com/nedbat/coveragepy/issues/1421

coverage/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ def __init__(self):
184184
self.debug = []
185185
self.disable_warnings = []
186186
self.dynamic_context = None
187-
self.note = None
188187
self.parallel = False
189188
self.plugins = []
190189
self.relative_files = False
@@ -360,7 +359,6 @@ def copy(self):
360359
('debug', 'run:debug', 'list'),
361360
('disable_warnings', 'run:disable_warnings', 'list'),
362361
('dynamic_context', 'run:dynamic_context'),
363-
('note', 'run:note'),
364362
('parallel', 'run:parallel', 'boolean'),
365363
('plugins', 'run:plugins', 'list'),
366364
('relative_files', 'run:relative_files', 'boolean'),

coverage/control.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,6 @@ def _post_save_work(self):
808808
for plugin_name, paths in file_paths.items():
809809
self._data.touch_files(paths, plugin_name)
810810

811-
if self.config.note:
812-
self._warn("The '[run] note' setting is no longer supported.")
813-
814811
# Backward compatibility with version 1.
815812
def analysis(self, morf):
816813
"""Like `analysis2` but doesn't return excluded line numbers."""

doc/config.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,6 @@ measurement or reporting. Ignored if ``source`` is set. See :ref:`source` for
222222
details.
223223

224224

225-
.. _config_run_note:
226-
227-
[run] note
228-
..........
229-
230-
(string) This is now obsolete.
231-
232-
233225
.. _config_run_omit:
234226

235227
[run] omit

tests/test_config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -706,17 +706,6 @@ def test_nocoveragerc_file_when_specified(self):
706706
assert not cov.config.branch
707707
assert cov.config.data_file == ".coverage"
708708

709-
def test_note_is_obsolete(self):
710-
self.make_file("main.py", "a = 1")
711-
self.make_file(".coveragerc", """\
712-
[run]
713-
note = I am here I am here I am here!
714-
""")
715-
cov = coverage.Coverage()
716-
with self.assert_warnings(cov, [r"The '\[run] note' setting is no longer supported."]):
717-
self.start_import_stop(cov, "main")
718-
cov.report()
719-
720709
def test_no_toml_installed_no_toml(self):
721710
# Can't read a toml file that doesn't exist.
722711
with without_module(coverage.tomlconfig, 'tomllib'):

0 commit comments

Comments
 (0)