Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Unreleased
- Update vendored schemas: bitbucket-pipelines, circle-ci, gitlab-ci, mergify, renovate
(2026-02-22)
- Removed support for Python 3.9
- Verbose text output has been adjusted. At the first verbosity level (`-v`),
all errors are reported but the checked filenames are no longer displayed. The
list of filenames checked is now emitted at the second verbosity level (`-vv`)
and above. (:issue:`648`)

0.36.2
------
Expand Down
2 changes: 1 addition & 1 deletion src/check_jsonschema/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def report_success(self, result: CheckResult) -> None:
return
ok = click.style("ok", fg="green")
self._echo(f"{ok} -- validation done")
if self.verbosity > 1:
if self.verbosity > 2:
self._echo("The following files were checked:")
for filename in result.successes:
self._echo(f" {filename}")
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_reporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _make_success_result():
return res


@pytest.mark.parametrize("verbosity", (0, 1, 2))
@pytest.mark.parametrize("verbosity", (0, 1, 2, 3))
@pytest.mark.parametrize("use_report_result_path", (False, True))
def test_text_format_success(capsys, verbosity, use_report_result_path):
reporter = TextReporter(verbosity=verbosity)
Expand All @@ -27,7 +27,7 @@ def test_text_format_success(capsys, verbosity, use_report_result_path):
assert captured.err == ""
if verbosity == 0:
assert captured.out == ""
elif verbosity == 1:
elif verbosity < 3:
assert captured.out == "ok -- validation done\n"
else:
assert captured.out == textwrap.dedent("""\
Expand Down
Loading