Skip to content

Commit

Permalink
CI: fix new ruff error B028
Browse files Browse the repository at this point in the history
	B028 No explicit `stacklevel` keyword argument found

Caused by this recent addition to ruff:
	astral-sh/ruff#3550
  • Loading branch information
DimitriPapadopoulos committed Mar 18, 2023
1 parent a239c80 commit 7278aae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codespell_lib/tests/test_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = {}
Expand Down

0 comments on commit 7278aae

Please sign in to comment.