From 7278aae5deba9e9c7c3d86c59a7ef59347cce140 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 18 Mar 2023 07:47:11 +0100 Subject: [PATCH] CI: fix new ruff error B028 B028 No explicit `stacklevel` keyword argument found Caused by this recent addition to ruff: https://github.com/charliermarsh/ruff/pull/3550 --- codespell_lib/tests/test_dictionary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codespell_lib/tests/test_dictionary.py b/codespell_lib/tests/test_dictionary.py index 7ab534c832..7fb9ea3114 100644 --- a/codespell_lib/tests/test_dictionary.py +++ b/codespell_lib/tests/test_dictionary.py @@ -25,7 +25,8 @@ else: warnings.warn( "aspell not found, but not required, skipping aspell tests. Got " - "error during import:\n{}".format(exp) + "error during import:\n{}".format(exp), + stacklevel=2, ) global_err_dicts: Dict[str, Dict[str, Any]] = {}